]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Add a workaround for Remote.hostname
authorZack Cerza <zack.cerza@inktank.com>
Wed, 17 Sep 2014 16:23:08 +0000 (10:23 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Wed, 17 Sep 2014 16:23:08 +0000 (10:23 -0600)
Since 'hostname --fqdn' isn't working reliably

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/orchestra/remote.py

index 9a447bce156361a8a6799d473c8fc82520d81c30..c65e2fd187fab726164625f29c84260229107458 100644 (file)
@@ -38,6 +38,9 @@ class Remote(object):
         self.name = name
         if '@' in name:
             (self.user, hostname) = name.split('@')
+            # Temporary workaround for 'hostname --fqdn' not working on some
+            # machines
+            self._hostname = hostname
         else:
             # os.getlogin() doesn't work on non-login shells. The following
             # should work on any unix system