Fix bug when restarting tempmon client

This commit is contained in:
Lance Edgar 2016-12-10 11:59:32 -06:00
parent aa9c7abdb5
commit ede7869a22

View file

@ -112,7 +112,7 @@ class TempmonClientView(MasterView):
client = self.get_instance()
if self.restartable_client(client):
try:
subprocess.check_output(get_restart_cmd(client),
subprocess.check_output(self.get_restart_cmd(client),
stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as error:
self.request.session.flash("Failed to restart client: {}".format(error.output), 'error')