fix bug in the stop_daemon method

This commit is contained in:
Damien Churchill 2009-09-24 08:35:40 +00:00
parent 1b6d92c778
commit e0671a0daa

View file

@ -686,7 +686,7 @@ class WebApi(JSONComponent):
:type host_id: string
"""
main_deferred = Deferred()
host = self.get_host(connection_id)
host = self.get_host(host_id)
if not host:
main_deferred.callback((False, _("Daemon doesn't exist")))
return main_deferred