diff --git a/libtisbackup/copy_vm_xcp.py b/libtisbackup/copy_vm_xcp.py index 5e65f89..3f96b91 100755 --- a/libtisbackup/copy_vm_xcp.py +++ b/libtisbackup/copy_vm_xcp.py @@ -231,8 +231,8 @@ class copy_vm_xcp(backup_generic): return result #Disable automatic boot - if session.xenapi.VM.get_other_config(vm).has_key('auto_poweron'): - session.xenapi.VM.remove_from_other_config(vm, "auto_poweron") + if session.xenapi.VM.get_other_config(backup_vm).has_key('auto_poweron'): + session.xenapi.VM.remove_from_other_config(backup_vm, "auto_poweron") if not str2bool(self.halt_vm): #delete the snapshot