From 0fbb3ed549491dbc8d41c80061f80f8c2967c7e0 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 31 Jul 2015 11:39:31 -0400 Subject: [PATCH] provision: specify ubuntu in __init__ Signed-off-by: Sage Weil --- teuthology/provision.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/teuthology/provision.py b/teuthology/provision.py index 994b21d8..516ae03a 100644 --- a/teuthology/provision.py +++ b/teuthology/provision.py @@ -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) -- 2.47.3