fix bug in the stop_daemon method

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

View file

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