Use proper name
This commit is contained in:
parent
eeeb54c23d
commit
6b6ebaa9be
12
pvc.py
12
pvc.py
|
@ -173,7 +173,7 @@ def undefine_vm(dom_name, dom_uuid):
|
||||||
dom_uuid = pvcf.searchClusterByName(zk, dom_name)
|
dom_uuid = pvcf.searchClusterByName(zk, dom_name)
|
||||||
|
|
||||||
# Verify we got a result or abort
|
# Verify we got a result or abort
|
||||||
if not validateUUID(dom_uuid):
|
if not pvcf.validateUUID(dom_uuid):
|
||||||
if dom_name != None:
|
if dom_name != None:
|
||||||
message_name = dom_name
|
message_name = dom_name
|
||||||
else:
|
else:
|
||||||
|
@ -238,7 +238,7 @@ def start_vm(dom_name, dom_uuid):
|
||||||
dom_uuid = pvcf.searchClusterByName(zk, dom_name)
|
dom_uuid = pvcf.searchClusterByName(zk, dom_name)
|
||||||
|
|
||||||
# Verify we got a result or abort
|
# Verify we got a result or abort
|
||||||
if not validateUUID(dom_uuid):
|
if not pvcf.validateUUID(dom_uuid):
|
||||||
if dom_name != None:
|
if dom_name != None:
|
||||||
message_name = dom_name
|
message_name = dom_name
|
||||||
else:
|
else:
|
||||||
|
@ -290,7 +290,7 @@ def shutdown_vm(dom_name, dom_uuid):
|
||||||
dom_uuid = pvcf.searchClusterByName(zk, dom_name)
|
dom_uuid = pvcf.searchClusterByName(zk, dom_name)
|
||||||
|
|
||||||
# Verify we got a result or abort
|
# Verify we got a result or abort
|
||||||
if not validateUUID(dom_uuid):
|
if not pvcf.validateUUID(dom_uuid):
|
||||||
if dom_name != None:
|
if dom_name != None:
|
||||||
message_name = dom_name
|
message_name = dom_name
|
||||||
else:
|
else:
|
||||||
|
@ -339,7 +339,7 @@ def stop_vm(dom_name, dom_uuid):
|
||||||
dom_uuid = pvcf.searchClusterByName(zk, dom_name)
|
dom_uuid = pvcf.searchClusterByName(zk, dom_name)
|
||||||
|
|
||||||
# Verify we got a result or abort
|
# Verify we got a result or abort
|
||||||
if not validateUUID(dom_uuid):
|
if not pvcf.validateUUID(dom_uuid):
|
||||||
if dom_name != None:
|
if dom_name != None:
|
||||||
message_name = dom_name
|
message_name = dom_name
|
||||||
else:
|
else:
|
||||||
|
@ -396,7 +396,7 @@ def migrate_vm(dom_name, dom_uuid, target_hypervisor, force_migrate):
|
||||||
dom_uuid = pvcf.searchClusterByName(zk, dom_name)
|
dom_uuid = pvcf.searchClusterByName(zk, dom_name)
|
||||||
|
|
||||||
# Verify we got a result or abort
|
# Verify we got a result or abort
|
||||||
if not validateUUID(dom_uuid):
|
if not pvcf.validateUUID(dom_uuid):
|
||||||
if dom_name != None:
|
if dom_name != None:
|
||||||
message_name = dom_name
|
message_name = dom_name
|
||||||
else:
|
else:
|
||||||
|
@ -476,7 +476,7 @@ def unmigrate_vm(dom_name, dom_uuid):
|
||||||
dom_uuid = pvcf.searchClusterByName(zk, dom_name)
|
dom_uuid = pvcf.searchClusterByName(zk, dom_name)
|
||||||
|
|
||||||
# Verify we got a result or abort
|
# Verify we got a result or abort
|
||||||
if not validateUUID(dom_uuid):
|
if not pvcf.validateUUID(dom_uuid):
|
||||||
if dom_name != None:
|
if dom_name != None:
|
||||||
message_name = dom_name
|
message_name = dom_name
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue