mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
Make test-module use default value for interpreter (#54053)
* Make test-module use default value for interpreter * Changing from static interpreter path to sys.executable as per #54053 * A little ntegration test for #54053
This commit is contained in:
parent
d3dae4a444
commit
54384e7a12
2 changed files with 7 additions and 2 deletions
|
@ -64,7 +64,8 @@ def parse():
|
|||
help="path to python debugger (e.g. /usr/bin/pdb)")
|
||||
parser.add_option('-I', '--interpreter', dest='interpreter',
|
||||
help="path to interpreter to use for this module (e.g. ansible_python_interpreter=/usr/bin/python)",
|
||||
metavar='INTERPRETER_TYPE=INTERPRETER_PATH')
|
||||
metavar='INTERPRETER_TYPE=INTERPRETER_PATH',
|
||||
default="ansible_python_interpreter=%s" % (sys.executable if sys.executable else '/usr/bin/python'))
|
||||
parser.add_option('-c', '--check', dest='check', action='store_true',
|
||||
help="run the module in check mode")
|
||||
parser.add_option('-n', '--noexecute', dest='execute', action='store_false',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue