diff --git a/rattail_demo/web/views/tempmon.py b/rattail_demo/web/views/tempmon.py index fe72b81..8b36dce 100644 --- a/rattail_demo/web/views/tempmon.py +++ b/rattail_demo/web/views/tempmon.py @@ -24,7 +24,10 @@ class TempmonClientView(BaseTempmonClientView): return client.config_key == 'demo' def get_restart_cmd(self, client): - return ['ssh', 'demo.rattailproject.org', 'sudo service demo-tempmon-client restart'] + if self.rattail_config.production(): + return ['ssh', 'demo.rattailproject.org', 'sudo service demo-tempmon-client restart'] + # just mock it out when testing + return ['sleep', '2'] class TempmonProbeView(BaseTempmonProbeView):