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:
parent
1ebd6d12ef
commit
ac7d039201
|
@ -115,6 +115,12 @@ class NoDaemon(object):
|
|||
def status(self):
|
||||
pass
|
||||
|
||||
def restart(self):
|
||||
pass
|
||||
|
||||
def reload(self):
|
||||
pass
|
||||
|
||||
|
||||
class Daemon(object):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue