From d1ce0e0176f0fc03848598ca9e99df1e2df68250 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Jun 27 2017 16:51:56 +0000 Subject: allow restart-hosts to work when deploying this change --- diff --git a/koji/tasks.py b/koji/tasks.py index 37c8165..b2258e3 100644 --- a/koji/tasks.py +++ b/koji/tasks.py @@ -519,7 +519,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: