We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0287280 commit 5fa6bdaCopy full SHA for 5fa6bda
lib/vm.py
@@ -478,7 +478,9 @@ def destroy_vtpm(self):
478
return self.host.xe('vtpm-destroy', {'uuid': vtpm_uuid}, force=True)
479
480
def clone(self):
481
- name = self.name() + '_clone_for_tests'
+ name = self.name()
482
+ if not name.endswith('_clone_for_tests'):
483
+ name += '_clone_for_tests'
484
logging.info("Clone VM")
485
uuid = self.host.xe('vm-clone', {'uuid': self.uuid, 'new-name-label': name})
486
return VM(uuid, self.host)
0 commit comments