mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #10928 from gimoh/test-module-default-python
Use same interpreter for test-module and module it runs
This commit is contained in:
commit
f146c7680f
1 changed files with 2 additions and 1 deletions
|
@ -61,7 +61,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='python={}'.format(sys.executable))
|
||||
parser.add_option('-c', '--check', dest='check', action='store_true',
|
||||
help="run the module in check mode")
|
||||
options, args = parser.parse_args()
|
||||
|
|
Loading…
Reference in a new issue