allow restart-hosts to work when deploying this change

This commit is contained in:
Mike McLean 2017-06-20 17:15:31 -04:00
parent a86703319c
commit ce6a88fa2a
2 changed files with 7 additions and 3 deletions

View file

@ -531,7 +531,9 @@ class RestartHostsTask(BaseTaskHandler):
Methods = ['restartHosts']
_taskWeight = 0.1
def handler(self, options):
def handler(self, options=None):
if options is None:
options = {}
# figure out which hosts we're restarting
hostquery = {'enabled': True}
if 'channel' in options: