forked from GoogleCloudPlatform/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed virtual field update issues (GoogleCloudPlatform#7318)
* fixed virtual field upadte issues * update funcs --------- Co-authored-by: Edward Sun <sunedward@google.com>
- Loading branch information
1 parent
f631ed5
commit 23377c0
Showing
5 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
if resourceSpannerInstanceVirtualUpdate(d, resourceSpannerInstance().Schema) { | ||
if d.Get("force_destroy") != nil { | ||
if err := d.Set("force_destroy", d.Get("force_destroy")); err != nil { | ||
return fmt.Errorf("Error reading Instance: %s", err) | ||
} | ||
} | ||
return nil | ||
} |