-
Notifications
You must be signed in to change notification settings - Fork 75
fix: correct volumeRestorePolicy assignment in VirtualMachineRestore
#2726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,7 +23,7 @@ def __init__( | |
| teardown=True, | ||
| yaml_file=None, | ||
| delete_timeout=TIMEOUT_4MINUTES, | ||
| volume_name_policy=None, | ||
| volume_restore_policy=None, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this introdcues a breaking change
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we can look in the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was introduced only 2 weeks ago #2709 |
||
| **kwargs, | ||
| ): | ||
| super().__init__( | ||
|
|
@@ -37,7 +37,7 @@ def __init__( | |
| ) | ||
| self.vm_name = vm_name | ||
| self.snapshot_name = snapshot_name | ||
| self.volume_name_policy = volume_name_policy | ||
| self.volume_restore_policy = volume_restore_policy | ||
|
|
||
| def to_dict(self) -> None: | ||
| super().to_dict() | ||
|
|
@@ -47,8 +47,8 @@ def to_dict(self) -> None: | |
| spec["target"]["kind"] = VirtualMachine.kind | ||
| spec["target"]["name"] = self.vm_name | ||
| spec["virtualMachineSnapshotName"] = self.snapshot_name | ||
| if self.volume_name_policy: | ||
| spec["volumeNamePolicy"] = self.volume_name_policy | ||
| if self.volume_restore_policy: | ||
| spec["volumeRestorePolicy"] = self.volume_restore_policy | ||
|
|
||
| def wait_complete(self, status=True, timeout=TIMEOUT_4MINUTES): | ||
| """ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.