]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
provision: specify ubuntu in __init__ 519/head
authorSage Weil <sage@redhat.com>
Fri, 31 Jul 2015 15:39:31 +0000 (11:39 -0400)
committerSage Weil <sage@redhat.com>
Fri, 31 Jul 2015 15:39:31 +0000 (11:39 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
teuthology/provision.py

index 994b21d8da5e78a559aa5b7fde816d6b98f3b59c..516ae03a261e12af66a978e1471f4b63333cae41 100644 (file)
@@ -42,13 +42,14 @@ class Downburst(object):
     A class that provides methods for creating and destroying virtual machine
     instances using downburst: https://github.com/ceph/downburst
     """
-    def __init__(self, name, os_type, os_version, status=None):
+    def __init__(self, name, os_type, os_version, status=None, user='ubuntu'):
         self.name = name
         self.os_type = os_type
         self.os_version = os_version
         self.status = status or get_status(self.name)
         self.config_path = None
         self.user_path = None
+        self.user = user
         self.host = decanonicalize_hostname(self.status['vm_host']['name'])
         self.executable = downburst_executable()
 
@@ -169,7 +170,7 @@ class Downburst(object):
         self.config_path = config_fd.name
 
         user_info = {
-            'user': 'ubuntu',
+            'user': self.user,
         }
         user_fd = tempfile.NamedTemporaryFile(delete=False)
         yaml.safe_dump(user_info, user_fd)