From 4ba366c2d15557aa2ffd8581d0da84abeea9975d Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 28 Feb 2012 01:34:28 -0500 Subject: [PATCH] Require that ansible managed hosts be in the list of hosts to manage to avoid option overload. --- bin/ans-command | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/ans-command b/bin/ans-command index 5f0e118596..923e4c60d6 100755 --- a/bin/ans-command +++ b/bin/ans-command @@ -49,9 +49,6 @@ def main(args): sshpass = None if options.askpass: sshpass = getpass.getpass(prompt="SSH password: ") - pattern = '*' - if options.host: - pattern += ';'.join(options.host) if options.output_dest: if options.output_dest[0] != '/': @@ -81,7 +78,7 @@ def main(args): remote_pass=sshpass, host_list=options.host_list, forks=options.forks, - pattern=pattern, + pattern=options.pattern, verbose=True, )