Only allow 'demo' tempmon client to be restarted
This commit is contained in:
parent
50509f8f52
commit
c61f5c8053
|
@ -20,6 +20,12 @@ class TempmonClientView(BaseTempmonClientView):
|
|||
def deletable_instance(self, client):
|
||||
return client.config_key != 'demo'
|
||||
|
||||
def restartable_client(self, client):
|
||||
return client.config_key == 'demo'
|
||||
|
||||
def get_restart_cmd(self, client):
|
||||
return ['ssh', 'demo.rattailproject.org', 'sudo service demo-tempmon-client restart']
|
||||
|
||||
|
||||
class TempmonProbeView(BaseTempmonProbeView):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue