Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit c308cda573e0860d04bbe8e135bcd86b794acf24
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Tue Oct 22 10:16:25 2013 +0200
check after connection is made
we need self.conn in check(), and that is created in _create_ans_conn()
addressing:
ERROR: <type 'exceptions.AttributeError'> - 'Builder' object
has no attribute 'conn'
Traceback (most recent call last):
File "backend/mockremote.py", line 643, in <module>
main(sys.argv[1:])
File "backend/mockremote.py", line 616, in main
callback=callback)
File "backend/mockremote.py", line 419, in __init__
self.builder = Builder(builder, user, timeout, self)
File "backend/mockremote.py", line 225, in __init__
self.check()
File "backend/mockremote.py", line 369, in check
self.conn.module_name = "shell"
AttributeError: 'Builder' object has no attribute 'conn'
---------------------------------------------------------------
backend/mockremote.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/backend/mockremote.py b/backend/mockremote.py
index 07acc5b..c60291b 100755
--- a/backend/mockremote.py
+++ b/backend/mockremote.py
@@ -219,10 +219,10 @@ class Builder(object):
self.mockremote = mockremote
self.checked = False
self._tempdir = None
- # check out the host - make sure it can build/be contacted/etc
- self.check()
# if we're at this point we've connected and done stuff on the host
self.conn = _create_ans_conn(self.hostname, self.username, self.timeout)
+ # check out the host - make sure it can build/be contacted/etc
+ self.check()
@property
def remote_build_dir(self):