Fixes starting freezer-scheduler with --no-daemon

When using flag --no-daemon, freezer-scheduler --no-daemon start fails with
AttributeError: 'NoDaemon' object has no attribute 'restart'
(freezer_scheduler.py: L251). This patch adds missing dummy methods for reload
and restart actions.

Change-Id: I72a0a4f68503b7c143cbe6c6f13cfbdc08e6ccbb
This commit is contained in:
Jakub Jursa 2018-05-11 15:00:07 +02:00
parent 1ebd6d12ef
commit ac7d039201
1 changed files with 6 additions and 0 deletions

View File

@ -115,6 +115,12 @@ class NoDaemon(object):
def status(self):
pass
def restart(self):
pass
def reload(self):
pass
class Daemon(object):
"""