Toshio Kuratomi
283205d7b3
We've changed run_command to return native_strings
...
on python3, this means that we don't get bytes back by default. We
probably do want bytes here so modify our call to run_command so we get
bytes instead of text.
2016-12-08 11:25:18 -05:00
mlewe
afa9d30717
Fixes ansible/ansible#15922 ( #3793 )
2016-12-08 11:25:02 -05:00
Scott Butler
bbf209b071
Added semicolon to invalid operators list redux.
2016-12-08 11:24:59 -05:00
Dag Wieers
02b906d70f
Remove redundant code AFAICT ( #3908 )
2016-12-08 11:24:53 -05:00
Toshio Kuratomi
9b7e866964
Cleanups of command.py ( #4526 )
...
* Import module_utils at the top
* Fix python3 by marking literals combined with stdout/stderr as byte
literals
* Mark parameters as type=path where appropriate
2016-12-08 11:24:52 -05:00
Toshio Kuratomi
879afebf77
Remove git and synchronize modules from list of commands we want users to use the module for instead. ( #4233 )
2016-12-08 11:24:45 -05:00
Harlan Lieberman-Berg
a0fe26b98b
command: Correct suggestion of non-existant module apt-get
2016-12-08 11:24:25 -05:00
Michael Scherer
edc0752395
Suggest using uri if curl is detected
...
Some people use the command module to run curl not to
download file, but to interact with remote HTTP api, and the
get_url suggestion is not suitable. So adding uri in the warning
would give a more meaningful warning.
Suggested by Tahvok on #ansible irc channel.
2016-12-08 11:24:19 -05:00
Toshio Kuratomi
f6aa1ff9a4
Remove duplicate documentation fields
2016-12-08 11:24:01 -05:00
Alexander Gubin
b0d54092ee
command: Add warnings for dnf and zypper
2016-12-08 11:23:55 -05:00
Brian Coca
3b934016c0
note that create globs only work on 2.0
...
fixes #2666
2016-12-08 11:23:52 -05:00
Brian Coca
ae18b7633c
returned version added
2016-12-08 11:23:27 -05:00
Bill Nottingham
d4069a8a8a
Warn on use of sudo, etc. in shell/command.
2016-12-08 11:23:26 -05:00
Federico G. Schwindt
b6258a1e4c
Document globbing support
2016-12-08 11:23:13 -05:00
Federico G. Schwindt
fa463fb1b7
Allow globbing in creates= and removes= directives
...
Fixes 1904
2016-12-08 11:23:12 -05:00
Greg DeKoenigsberg
eb881d7d5d
Proper author info for all remaining modules
2016-12-08 11:23:07 -05:00
James Cammarata
46b60a5b70
Fix missing expanduser on chdir value
2016-12-08 11:23:03 -05:00
James Cammarata
d07378ceac
Command module changes for v2 compatibility
2016-12-08 11:23:03 -05:00
Toshio Kuratomi
84f27cfa68
Remove str.format() usage for python2.4 compat.
...
Fixes #10036
2016-12-08 11:22:40 -05:00
Ricky Cook
522c644bf1
Fix regex string format
2016-12-08 11:22:36 -05:00
Ricky Cook
a6a9e2c247
Get warn option same as other args
2016-12-08 11:22:36 -05:00
Ricky Cook
095400c45e
Add comment to command options dict
2016-12-08 11:22:36 -05:00
Ricky Cook
5e21c81ca4
Simplify command module option parsing
2016-12-08 11:22:36 -05:00
James Cammarata
dd2807ef3c
Strip newlines off k=v pairs in command/shell argument parsing
...
Fixes ansible/ansible#9272
2016-12-08 11:22:23 -05:00
Michael DeHaan
213e518165
file extensions!
2016-12-08 11:22:22 -05:00