From: Sebastian Wagner Date: Wed, 19 Aug 2020 10:10:04 +0000 (+0200) Subject: mgr/orch: daemon redeploy: Fix missing default value X-Git-Tag: wip-pdonnell-testing-20200918.022351~220^2~6 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e6f2237840b8fa17d6ca95b02b784a224a4f22f7;p=ceph-ci.git mgr/orch: daemon redeploy: Fix missing default value Fixes: https://tracker.ceph.com/issues/47035 Signed-off-by: Sebastian Wagner --- diff --git a/src/pybind/mgr/orchestrator/module.py b/src/pybind/mgr/orchestrator/module.py index 90e71367e6d..f46ab29f634 100644 --- a/src/pybind/mgr/orchestrator/module.py +++ b/src/pybind/mgr/orchestrator/module.py @@ -966,7 +966,7 @@ Usage: "name=name,type=CephString " "name=image,type=CephString,req=false", 'Redeploy a daemon (with a specifc image)') - def _daemon_action_redeploy(self, name, image): + def _daemon_action_redeploy(self, name: str, image: Optional[str] = None) -> HandleCommandResult: if '.' not in name: raise OrchestratorError('%s is not a valid daemon name' % name) completion = self.daemon_action("redeploy", name, image=image)