Skip to content

Commit

Permalink
Merge pull request ceph#1541 from tchaikov/wip-cluster-sh
Browse files Browse the repository at this point in the history
orchestra/cluster: be explicit that a positional argument is needed

Reviewed-by: Brad Hubbard <[email protected]>
  • Loading branch information
tchaikov authored Jul 31, 2020
2 parents 30fabf7 + f87ac52 commit f3cf2e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions teuthology/orchestra/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def run(self, **kwargs):
remotes = sorted(self.remotes.keys(), key=lambda rem: rem.name)
return [remote.run(**kwargs) for remote in remotes]

def sh(self, **kwargs):
def sh(self, script, **kwargs):
"""
Run a command on all the nodes in this cluster.
Expand All @@ -72,7 +72,7 @@ def sh(self, **kwargs):
Returns a list of the command outputs correspondingly.
"""
remotes = sorted(self.remotes.keys(), key=lambda rem: rem.name)
return [remote.sh(**kwargs) for remote in remotes]
return [remote.sh(script, **kwargs) for remote in remotes]

def write_file(self, file_name, content, sudo=False, perms=None, owner=None):
"""
Expand Down

0 comments on commit f3cf2e1

Please sign in to comment.