-
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.
During Update(), load the existing entry to restore private fields.
Some parameters can have codegen override set to skip parameter in terraform provider - this can be used for example when rendering panorama templates to skip attributes related to importing - import is done implicitly when creating other resources. Due to that care has to be taken to make sure those private fields are still copied to pango structures for the update, otherwise Update() call will end up removing them. This implementation follows the old provider, by reading existing entries from the server during Update() call in the provider, and only copying data that is known to the provider, leaving everything else intact.
- Loading branch information
1 parent
815437a
commit d61ac46
Showing
3 changed files
with
112 additions
and
73 deletions.
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