1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Addresses #6750 Use --help instead of -

This commit is contained in:
James Tanner 2014-04-03 15:26:48 -04:00
parent cca028187e
commit 1c9950678a

View file

@ -160,7 +160,7 @@ def get_submodule_update_params(module, git_path, cwd):
params = []
# run a bad submodule command to get valid params
cmd = "%s submodule update -" % (git_path)
cmd = "%s submodule update --help" % (git_path)
rc, stdout, stderr = module.run_command(cmd, cwd=cwd)
lines = stderr.split('\n')
update_line = None