[copr] master: ansible 0.9 changes the host_list option from taking an actual list to a comma separated list - grumble (1ce0561)

skvidal at fedoraproject.org skvidal at fedoraproject.org
Wed Jan 16 07:00:57 UTC 2013


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : master

>---------------------------------------------------------------

commit 1ce0561e2586735ae416dc0187a990395ec1de91
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Wed Jan 16 02:00:07 2013 -0500

    ansible 0.9 changes the host_list option from taking an actual list to
    a comma separated list - grumble


>---------------------------------------------------------------

 backend/mockremote.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/backend/mockremote.py b/backend/mockremote.py
index 8c81580..2e1e19f 100755
--- a/backend/mockremote.py
+++ b/backend/mockremote.py
@@ -96,7 +96,7 @@ def get_ans_results(results, hostname):
 
 def _create_ans_conn(hostname, username, timeout):
     ans_conn = ansible.runner.Runner(remote_user=username,
-          host_list=[hostname], pattern=hostname, forks=1,
+          host_list=hostname + ',', pattern=hostname, forks=1,
           timeout=timeout)
     return ans_conn
     
@@ -363,7 +363,8 @@ class Builder(object):
             raise BuilderError('%s could not be resolved' % self.hostname)
             
         # connect as user 
-        ans = ansible.runner.Runner(host_list=[self.hostname], pattern='*', 
+        
+        ans = ansible.runner.Runner(host_list=self.hostname + ',', pattern='*', 
               remote_user=self.username, forks=1, timeout=20)
         ans.module_name = "shell"
         ans.module_args = str("/bin/rpm -q mock rsync")



More information about the copr-devel mailing list