mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-25 10:29:09 -07:00
Misc. typo fixes (#4940)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
35ddf31b5f
commit
bf94f08bc4
40 changed files with 55 additions and 55 deletions
|
@ -360,7 +360,7 @@ class LXDProfileManagement(object):
|
|||
)
|
||||
|
||||
def _merge_dicts(self, source, destination):
|
||||
"""Merge Dictionarys
|
||||
"""Merge Dictionaries
|
||||
|
||||
Get a list of filehandle numbers from logger to be handed to
|
||||
DaemonContext.files_preserve
|
||||
|
|
|
@ -303,7 +303,7 @@ class LXDProjectManagement(object):
|
|||
)
|
||||
|
||||
def _merge_dicts(self, source, destination):
|
||||
""" Return a new dict taht merge two dict,
|
||||
""" Return a new dict that merge two dict,
|
||||
with values in source dict overwrite destination dict
|
||||
|
||||
Args:
|
||||
|
|
|
@ -1204,12 +1204,12 @@ def main():
|
|||
# Ensure source VM id exists when cloning
|
||||
proxmox.get_vm(vmid)
|
||||
|
||||
# Ensure the choosen VM name doesn't already exist when cloning
|
||||
# Ensure the chosen VM name doesn't already exist when cloning
|
||||
existing_vmid = proxmox.get_vmid(name, ignore_missing=True)
|
||||
if existing_vmid:
|
||||
module.exit_json(changed=False, vmid=existing_vmid, msg="VM with name <%s> already exists" % name)
|
||||
|
||||
# Ensure the choosen VM id doesn't already exist when cloning
|
||||
# Ensure the chosen VM id doesn't already exist when cloning
|
||||
if proxmox.get_vm(newid, ignore_missing=True):
|
||||
module.exit_json(changed=False, vmid=vmid, msg="vmid %s with VM name %s already exists" % (newid, name))
|
||||
|
||||
|
|
|
@ -1207,7 +1207,7 @@ class XenServerVM(XenServerObject):
|
|||
if (self.module.params['home_server'] and
|
||||
(not self.vm_params['affinity'] or self.module.params['home_server'] != self.vm_params['affinity']['name_label'])):
|
||||
|
||||
# Check existance only. Ignore return value.
|
||||
# Check existence only. Ignore return value.
|
||||
get_object_ref(self.module, self.module.params['home_server'], uuid=None, obj_type="home server", fail=True,
|
||||
msg_prefix="VM check home_server: ")
|
||||
|
||||
|
@ -1371,7 +1371,7 @@ class XenServerVM(XenServerObject):
|
|||
disk_sr = disk_params.get('sr')
|
||||
|
||||
if disk_sr_uuid is not None or disk_sr is not None:
|
||||
# Check existance only. Ignore return value.
|
||||
# Check existence only. Ignore return value.
|
||||
get_object_ref(self.module, disk_sr, disk_sr_uuid, obj_type="SR", fail=True,
|
||||
msg_prefix="VM check disks[%s]: " % position)
|
||||
elif self.default_sr_ref == 'OpaqueRef:NULL':
|
||||
|
@ -1448,7 +1448,7 @@ class XenServerVM(XenServerObject):
|
|||
|
||||
if cdrom_type == "iso":
|
||||
# Check if ISO exists.
|
||||
# Check existance only. Ignore return value.
|
||||
# Check existence only. Ignore return value.
|
||||
get_object_ref(self.module, cdrom_iso_name, uuid=None, obj_type="ISO image", fail=True,
|
||||
msg_prefix="VM check cdrom.iso_name: ")
|
||||
|
||||
|
@ -1496,7 +1496,7 @@ class XenServerVM(XenServerObject):
|
|||
self.module.fail_json(msg="VM check networks[%s]: network name cannot be an empty string!" % position)
|
||||
|
||||
if network_name:
|
||||
# Check existance only. Ignore return value.
|
||||
# Check existence only. Ignore return value.
|
||||
get_object_ref(self.module, network_name, uuid=None, obj_type="network", fail=True,
|
||||
msg_prefix="VM check networks[%s]: " % position)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue