misc typo fixes (#67775)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
9c221e2bfa
commit
a4da73e961
|
@ -27,8 +27,8 @@ To debug a module running on a remote target (i.e. not ``localhost``):
|
||||||
#. Take note of the directory Ansible used to store modules on the remote host. This directory is usually under the home directory of your ``ansible_user``, in the form ``~/.ansible/tmp/ansible-tmp-...``.
|
#. Take note of the directory Ansible used to store modules on the remote host. This directory is usually under the home directory of your ``ansible_user``, in the form ``~/.ansible/tmp/ansible-tmp-...``.
|
||||||
#. SSH into the remote target after the playbook runs.
|
#. SSH into the remote target after the playbook runs.
|
||||||
#. Navigate to the directory you noted in step 3.
|
#. Navigate to the directory you noted in step 3.
|
||||||
#. Extract the module you want to debug from the zipped file that Ansible sent to the remote host: ``$ python AnsiballZ_my_test_module.py explode``. Ansible will expand the module into ``./debug-dir``. You can optionally run the zipped file by specifying ``python AnsiballZ_my_test_module.py``.
|
#. Extract the module you want to debug from the zipped file that Ansible sent to the remote host: ``$ python AnsiballZ_my_test_module.py explode``. Ansible will expand the module into ``./debug_dir``. You can optionally run the zipped file by specifying ``python AnsiballZ_my_test_module.py``.
|
||||||
#. Navigate to the debug directory: ``$ cd debug-dir``.
|
#. Navigate to the debug directory: ``$ cd debug_dir``.
|
||||||
#. Modify or set a breakpoint in ``__main__.py``.
|
#. Modify or set a breakpoint in ``__main__.py``.
|
||||||
#. Ensure that the unzipped module is executable: ``$ chmod 755 __main__.py``.
|
#. Ensure that the unzipped module is executable: ``$ chmod 755 __main__.py``.
|
||||||
#. Run the unzipped module directly, passing the ``args`` file that contains the params that were originally passed: ``$ ./__main__.py args``. This approach is good for reproducing behavior as well as modifying the parameters for debugging.
|
#. Run the unzipped module directly, passing the ``args`` file that contains the params that were originally passed: ``$ ./__main__.py args``. This approach is good for reproducing behavior as well as modifying the parameters for debugging.
|
||||||
|
|
|
@ -47,7 +47,7 @@ options:
|
||||||
api_url:
|
api_url:
|
||||||
description:
|
description:
|
||||||
- Custom API URL. Overrides the
|
- Custom API URL. Overrides the
|
||||||
ONEANDONE_API_URL environement variable.
|
ONEANDONE_API_URL environment variable.
|
||||||
required: false
|
required: false
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -44,7 +44,7 @@ options:
|
||||||
api_url:
|
api_url:
|
||||||
description:
|
description:
|
||||||
- Custom API URL. Overrides the
|
- Custom API URL. Overrides the
|
||||||
ONEANDONE_API_URL environement variable.
|
ONEANDONE_API_URL environment variable.
|
||||||
required: false
|
required: false
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -47,7 +47,7 @@ options:
|
||||||
api_url:
|
api_url:
|
||||||
description:
|
description:
|
||||||
- Custom API URL. Overrides the
|
- Custom API URL. Overrides the
|
||||||
ONEANDONE_API_URL environement variable.
|
ONEANDONE_API_URL environment variable.
|
||||||
required: false
|
required: false
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -43,7 +43,7 @@ options:
|
||||||
api_url:
|
api_url:
|
||||||
description:
|
description:
|
||||||
- Custom API URL. Overrides the
|
- Custom API URL. Overrides the
|
||||||
ONEANDONE_API_URL environement variable.
|
ONEANDONE_API_URL environment variable.
|
||||||
required: false
|
required: false
|
||||||
reverse_dns:
|
reverse_dns:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -39,12 +39,12 @@ options:
|
||||||
auth_token:
|
auth_token:
|
||||||
description:
|
description:
|
||||||
- Authenticating API token provided by 1&1. Overrides the
|
- Authenticating API token provided by 1&1. Overrides the
|
||||||
ONEANDONE_AUTH_TOKEN environement variable.
|
ONEANDONE_AUTH_TOKEN environment variable.
|
||||||
required: true
|
required: true
|
||||||
api_url:
|
api_url:
|
||||||
description:
|
description:
|
||||||
- Custom API URL. Overrides the
|
- Custom API URL. Overrides the
|
||||||
ONEANDONE_API_URL environement variable.
|
ONEANDONE_API_URL environment variable.
|
||||||
datacenter:
|
datacenter:
|
||||||
description:
|
description:
|
||||||
- The datacenter location.
|
- The datacenter location.
|
||||||
|
|
|
@ -239,7 +239,7 @@ def main():
|
||||||
sw_vsaninterfaces = []
|
sw_vsaninterfaces = []
|
||||||
|
|
||||||
if vsanremove:
|
if vsanremove:
|
||||||
# Negetive case:
|
# Negative case:
|
||||||
if vsanid == '4079' or vsanid == '4094':
|
if vsanid == '4079' or vsanid == '4094':
|
||||||
messages.append(str(vsanid) + " is a reserved vsan, hence cannot be removed")
|
messages.append(str(vsanid) + " is a reserved vsan, hence cannot be removed")
|
||||||
continue
|
continue
|
||||||
|
@ -250,7 +250,7 @@ def main():
|
||||||
messages.append("There is no vsan " + str(vsanid) + " present in the switch. Hence there is nothing to delete")
|
messages.append("There is no vsan " + str(vsanid) + " present in the switch. Hence there is nothing to delete")
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
# Negetive case:
|
# Negative case:
|
||||||
if vsanid == '4079' or vsanid == '4094':
|
if vsanid == '4079' or vsanid == '4094':
|
||||||
messages.append(str(vsanid) + " is a reserved vsan, and always present on the switch")
|
messages.append(str(vsanid) + " is a reserved vsan, and always present on the switch")
|
||||||
else:
|
else:
|
||||||
|
@ -261,7 +261,7 @@ def main():
|
||||||
messages.append("creating vsan " + str(vsanid))
|
messages.append("creating vsan " + str(vsanid))
|
||||||
|
|
||||||
if vsanname is not None:
|
if vsanname is not None:
|
||||||
# Negetive case:
|
# Negative case:
|
||||||
if vsanid == '4079' or vsanid == '4094':
|
if vsanid == '4079' or vsanid == '4094':
|
||||||
messages.append(str(vsanid) + " is a reserved vsan, and cannot be renamed")
|
messages.append(str(vsanid) + " is a reserved vsan, and cannot be renamed")
|
||||||
else:
|
else:
|
||||||
|
@ -277,7 +277,7 @@ def main():
|
||||||
messages.append("setting vsan name to " + vsanname + " for vsan " + str(vsanid))
|
messages.append("setting vsan name to " + vsanname + " for vsan " + str(vsanid))
|
||||||
|
|
||||||
if vsansuspend:
|
if vsansuspend:
|
||||||
# Negetive case:
|
# Negative case:
|
||||||
if vsanid == '4079' or vsanid == '4094':
|
if vsanid == '4079' or vsanid == '4094':
|
||||||
messages.append(str(vsanid) + " is a reserved vsan, and cannot be suspended")
|
messages.append(str(vsanid) + " is a reserved vsan, and cannot be suspended")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue