mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixed typos (#52426)
This commit is contained in:
parent
be3a47e2fe
commit
7d6a94e7dc
6 changed files with 10 additions and 10 deletions
|
@ -41,7 +41,7 @@ class Network:
|
||||||
|
|
||||||
|
|
||||||
class NetworkCollector(BaseFactCollector):
|
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'
|
name = 'network'
|
||||||
_fact_class = Network
|
_fact_class = Network
|
||||||
_fact_ids = set(['interfaces',
|
_fact_ids = set(['interfaces',
|
||||||
|
|
|
@ -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=""):
|
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
|
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:
|
Args:
|
||||||
module: Reference to Ansible module object.
|
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
|
obj_ref = None
|
||||||
|
|
||||||
# UUID has precendence over name.
|
# UUID has precedence over name.
|
||||||
if uuid:
|
if uuid:
|
||||||
try:
|
try:
|
||||||
# Find object by UUID. If no object is found using given UUID,
|
# Find object by UUID. If no object is found using given UUID,
|
||||||
|
|
|
@ -70,7 +70,7 @@ EXAMPLES = """
|
||||||
state: present
|
state: present
|
||||||
active: no
|
active: no
|
||||||
|
|
||||||
- name: Remove an arbitary inactive rule set
|
- name: Remove an arbitrary inactive rule set
|
||||||
aws_ses_rule_set:
|
aws_ses_rule_set:
|
||||||
name: arbitrary-rule-set
|
name: arbitrary-rule-set
|
||||||
state: absent
|
state: absent
|
||||||
|
|
|
@ -344,7 +344,7 @@ options:
|
||||||
datastore:
|
datastore:
|
||||||
description:
|
description:
|
||||||
- Specify datastore or datastore cluster to provision virtual machine.
|
- 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.
|
- 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.
|
- For example, when user has different datastore or datastore cluster for templates and virtual machines.
|
||||||
- Please see example for more usage.
|
- Please see example for more usage.
|
||||||
|
@ -2120,7 +2120,7 @@ class PyVmomiHelper(PyVmomi):
|
||||||
|
|
||||||
# set the destination datastore for VM & disks
|
# set the destination datastore for VM & disks
|
||||||
if self.params['datastore']:
|
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.
|
# User may want to deploy VM to specific datastore.
|
||||||
datastore_name = self.params['datastore']
|
datastore_name = self.params['datastore']
|
||||||
# Check if user has provided datastore cluster first
|
# Check if user has provided datastore cluster first
|
||||||
|
|
|
@ -362,13 +362,13 @@ class ConditionsHandler(Handler):
|
||||||
if self._module.params['device'] is not None:
|
if self._module.params['device'] is not None:
|
||||||
name = self._crypthandler.get_container_name_by_device(
|
name = self._crypthandler.get_container_name_by_device(
|
||||||
self._module.params['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
|
luks_is_open = name is not None
|
||||||
|
|
||||||
if self._module.params['name'] is not None:
|
if self._module.params['name'] is not None:
|
||||||
device = self._crypthandler.get_container_device_by_name(
|
device = self._crypthandler.get_container_device_by_name(
|
||||||
self._module.params['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
|
luks_is_open = device is not None
|
||||||
|
|
||||||
return luks_is_open
|
return luks_is_open
|
||||||
|
|
|
@ -217,7 +217,7 @@ class ActionModule(ActionBase):
|
||||||
out=to_native(command_result['stdout']))
|
out=to_native(command_result['stdout']))
|
||||||
raise RuntimeError(msg)
|
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):
|
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)
|
max_end_time = datetime.utcnow() + timedelta(seconds=reboot_timeout)
|
||||||
|
|
Loading…
Reference in a new issue