Skip to content

Commit

Permalink
misc: pass cluster through stop_daemons_of_type()
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Durgin <[email protected]>
  • Loading branch information
jdurgin committed Apr 11, 2016
1 parent ee0c8b6 commit 2026c64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions teuthology/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1173,13 +1173,13 @@ def ssh_keyscan_wait(hostname):
log.info("try ssh_keyscan again for " + str(hostname))
return success

def stop_daemons_of_type(ctx, type_):
def stop_daemons_of_type(ctx, type_, cluster='ceph'):
"""
:param type_: type of daemons to be stopped.
"""
log.info('Shutting down %s daemons...' % type_)
exc_info = (None, None, None)
for daemon in ctx.daemons.iter_daemons_of_role(type_):
for daemon in ctx.daemons.iter_daemons_of_role(type_, cluster):
try:
daemon.stop()
except (CommandFailedError,
Expand Down

0 comments on commit 2026c64

Please sign in to comment.