diff options
author | Cindy Park <86710710+cpark50@users.noreply.github.com> | 2022-03-24 19:18:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-24 19:18:33 +0100 |
commit | 1bdcb562496e3abf93981c61ceb5098a6f4addb1 (patch) | |
tree | 1bb17cbe1d45d17001456a613004198306b35354 /hacking | |
parent | Incorrect parent role paths var description (#77342) (diff) | |
download | ansible-1bdcb562496e3abf93981c61ceb5098a6f4addb1.tar.xz ansible-1bdcb562496e3abf93981c61ceb5098a6f4addb1.zip |
Improve documentation to fix outdated file paths (#77341)
Co-authored-by: njthanhtrang <njthanhtrang@users.noreply.github.com>
Diffstat (limited to 'hacking')
-rw-r--r-- | hacking/README.md | 2 | ||||
-rwxr-xr-x | hacking/test-module.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/hacking/README.md b/hacking/README.md index b31c884f0f..46235579db 100644 --- a/hacking/README.md +++ b/hacking/README.md @@ -29,7 +29,7 @@ a module outside of the ansible program, locally, on the current machine. Example: - $ ./hacking/test-module.py -m lib/ansible/modules/commands/command.py -a "echo hi" + $ ./hacking/test-module.py -m lib/ansible/modules/command.py -a "echo hi" This is a good way to insert a breakpoint into a module, for instance. diff --git a/hacking/test-module.py b/hacking/test-module.py index 6cdda7c426..54343e07e8 100755 --- a/hacking/test-module.py +++ b/hacking/test-module.py @@ -23,10 +23,10 @@ # modules # # example: -# ./hacking/test-module.py -m lib/ansible/modules/commands/command.py -a "/bin/sleep 3" -# ./hacking/test-module.py -m lib/ansible/modules/commands/command.py -a "/bin/sleep 3" --debugger /usr/bin/pdb -# ./hacking/test-module.py -m lib/ansible/modules/files/lineinfile.py -a "dest=/etc/exports line='/srv/home hostname1(rw,sync)'" --check -# ./hacking/test-module.py -m lib/ansible/modules/commands/command.py -a "echo hello" -n -o "test_hello" +# ./hacking/test-module.py -m lib/ansible/modules/command.py -a "/bin/sleep 3" +# ./hacking/test-module.py -m lib/ansible/modules/command.py -a "/bin/sleep 3" --debugger /usr/bin/pdb +# ./hacking/test-module.py -m lib/ansible/modules/lineinfile.py -a "dest=/etc/exports line='/srv/home hostname1(rw,sync)'" --check +# ./hacking/test-module.py -m lib/ansible/modules/command.py -a "echo hello" -n -o "test_hello" from __future__ import (absolute_import, division, print_function) __metaclass__ = type |