Skip to content

Commit

Permalink
qa/tasks/salt_manager: Change Salt master role
Browse files Browse the repository at this point in the history
Adding as optional  parameter in the constructor the teuthology role that will be
used as the salt master.

Signed-off-by: Georgios Kyratsas <gkyratsas@suse.com>
  • Loading branch information
Georgios Kyratsas committed Jun 10, 2020
1 parent 2d4120a commit 3e55daf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions qa/tasks/salt_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,13 @@ def systemctl_cmd(subcommand, lines=0):


class SaltManager(object):

def __init__(self, ctx):
"""
:param ctx: Context from the main task
:param role: role that will be used as Salt Master (default 'client.salt_master')
"""
def __init__(self, ctx, role=master_role):
self.ctx = ctx
self.master_remote = get_remote_for_role(self.ctx, master_role)
self.master_remote = get_remote_for_role(self.ctx, role)

def __cat_file_cluster(self, filename=None):
"""
Expand Down

0 comments on commit 3e55daf

Please sign in to comment.