summaryrefslogtreecommitdiff
path: root/test/integration/targets/ansible
diff options
context:
space:
mode:
authorMatt Martz <matt@sivel.net>2019-04-23 13:54:39 -0500
committerGitHub <noreply@github.com>2019-04-23 13:54:39 -0500
commitdb6cc603528c5d1c15acf89e092f99f5d24ca848 (patch)
tree71ba2d9d769f9882f210722d21fd644a5b2f0052 /test/integration/targets/ansible
parent7ee6c136fddbab8a2f854f8c9561fadd5bc4c1c8 (diff)
downloadansible-db6cc603528c5d1c15acf89e092f99f5d24ca848.tar.gz
Migrate command line parsing to argparse (#50610)
* Start of migration to argparse * various fixes and improvements * Linting fixes * Test fixes * Fix vault_password_files * Add PrependAction for argparse * A bunch of additional tweak/fixes * Fix ansible-config tests * Fix man page generation * linting fix * More adhoc pattern fixes * Add changelog fragment * Add support for argcomplete * Enable argcomplete global completion * Rename PrependAction to PrependListAction to better describe what it does * Add documentation for installing and configuring argcomplete * Address rebase issues * Fix display encoding for vault * Fix line length * Address rebase issues * Handle rebase issues * Use mutually exclusive group instead of handling manually * Fix rebase issues * Address rebase issue * Update version added for argcomplete support * -e must be given a value * ci_complete
Diffstat (limited to 'test/integration/targets/ansible')
-rwxr-xr-xtest/integration/targets/ansible/runme.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/integration/targets/ansible/runme.sh b/test/integration/targets/ansible/runme.sh
index 5fada97789..b3ddb65fd7 100755
--- a/test/integration/targets/ansible/runme.sh
+++ b/test/integration/targets/ansible/runme.sh
@@ -8,10 +8,10 @@ ansible --help
ansible testhost -i ../../inventory -m ping "$@"
ansible testhost -i ../../inventory -m setup "$@"
-ansible-config -c ./ansible-testé.cfg view | grep 'remote_user = admin'
-ansible-config -c ./ansible-testé.cfg dump | grep 'DEFAULT_REMOTE_USER([^)]*) = admin\>'
+ansible-config view -c ./ansible-testé.cfg | grep 'remote_user = admin'
+ansible-config dump -c ./ansible-testé.cfg | grep 'DEFAULT_REMOTE_USER([^)]*) = admin\>'
ANSIBLE_REMOTE_USER=administrator ansible-config dump| grep 'DEFAULT_REMOTE_USER([^)]*) = administrator\>'
ansible-config list | grep 'DEFAULT_REMOTE_USER'
# 'view' command must fail when config file is missing
-ansible-config -c ./ansible-non-existent.cfg view && exit 1 || echo 'Failure is expected'
+ansible-config view -c ./ansible-non-existent.cfg && exit 1 || echo 'Failure is expected'