Fixed typos (#52426)

This commit is contained in:
Sayed Anisul Hoque 2019-02-17 22:49:40 +01:00 committed by René Moser
parent be3a47e2fe
commit 7d6a94e7dc
6 changed files with 10 additions and 10 deletions

View file

@ -41,7 +41,7 @@ class Network:
class NetworkCollector(BaseFactCollector):
# MAYBE: we could try to build this based on the arch specific implemementation of Network() or its kin
# MAYBE: we could try to build this based on the arch specific implementation of Network() or its kin
name = 'network'
_fact_class = Network
_fact_ids = set(['interfaces',

View file

@ -269,10 +269,10 @@ def is_valid_ip6_prefix(ip6_prefix):
def get_object_ref(module, name, uuid=None, obj_type="VM", fail=True, msg_prefix=""):
"""Finds and returns a reference to arbitary XAPI object.
"""Finds and returns a reference to arbitrary XAPI object.
An object is searched by using either name (name_label) or UUID
with UUID taken precendence over name.
with UUID taken precedence over name.
Args:
module: Reference to Ansible module object.
@ -302,7 +302,7 @@ def get_object_ref(module, name, uuid=None, obj_type="VM", fail=True, msg_prefix
obj_ref = None
# UUID has precendence over name.
# UUID has precedence over name.
if uuid:
try:
# Find object by UUID. If no object is found using given UUID,

View file

@ -70,7 +70,7 @@ EXAMPLES = """
state: present
active: no
- name: Remove an arbitary inactive rule set
- name: Remove an arbitrary inactive rule set
aws_ses_rule_set:
name: arbitrary-rule-set
state: absent

View file

@ -344,7 +344,7 @@ options:
datastore:
description:
- Specify datastore or datastore cluster to provision virtual machine.
- 'This will take precendence over "disk.datastore" parameter.'
- 'This will take precedence over "disk.datastore" parameter.'
- This parameter is useful to override datastore or datastore cluster setting.
- For example, when user has different datastore or datastore cluster for templates and virtual machines.
- Please see example for more usage.
@ -2120,7 +2120,7 @@ class PyVmomiHelper(PyVmomi):
# set the destination datastore for VM & disks
if self.params['datastore']:
# Give precendence to datastore value provided by user
# Give precedence to datastore value provided by user
# User may want to deploy VM to specific datastore.
datastore_name = self.params['datastore']
# Check if user has provided datastore cluster first

View file

@ -362,13 +362,13 @@ class ConditionsHandler(Handler):
if self._module.params['device'] is not None:
name = self._crypthandler.get_container_name_by_device(
self._module.params['device'])
# sucessfully getting name based on device means that luks is open
# successfully getting name based on device means that luks is open
luks_is_open = name is not None
if self._module.params['name'] is not None:
device = self._crypthandler.get_container_device_by_name(
self._module.params['name'])
# sucessfully getting device based on name means that luks is open
# successfully getting device based on name means that luks is open
luks_is_open = device is not None
return luks_is_open

View file

@ -217,7 +217,7 @@ class ActionModule(ActionBase):
out=to_native(command_result['stdout']))
raise RuntimeError(msg)
display.vvv("{action}: system sucessfully rebooted".format(action=self._task.action))
display.vvv("{action}: system successfully rebooted".format(action=self._task.action))
def do_until_success_or_timeout(self, action, reboot_timeout, action_desc, distribution, action_kwargs=None):
max_end_time = datetime.utcnow() + timedelta(seconds=reboot_timeout)