Only allow 'demo' tempmon client to be restarted

This commit is contained in:
Lance Edgar 2016-12-10 11:56:58 -06:00
parent 50509f8f52
commit c61f5c8053

View file

@ -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):
"""