-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Differences between creation and import state (#2127)
There are differences between the state in the r/vsphere_virtual_machine when it is imported and when it is created/cloned. - datastore_cluster_id - adding the property to the state when the VM is imported in order to keep the pervious behaviour. - disk.label / disk.keep_on_remove - the logic was to assign a computed label in format "disk<number of the diks>" instead of the actual label added by the system and in such cases the disk was marked as keep_on_remove. Changed this to set the actual label and not setting the keep_on_remove property (defaulting to folse). If the label is not present - keeping the old logic. Signed-off-by: Vasil Atanasov <[email protected]>
- Loading branch information
1 parent
4644a86
commit 609d0ae
Showing
3 changed files
with
36 additions
and
4 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