plugin adhoc_dbus, jp (cmd/adhoc): fixes adHocDBusAddAuto when no bus is found
fix bug 134
This commit is contained in:
parent
4408147e2d
commit
edb31e2d74
2 changed files with 4 additions and 1 deletions
|
|
@ -48,6 +48,9 @@ class Remote(base.CommandBase):
|
|||
bus_name, methods = self.host.bridge.adHocDBusAddAuto(name, jids, self.args.groups, magics,
|
||||
self.args.forbidden_jids, self.args.forbidden_groups,
|
||||
flags, self.profile)
|
||||
if not bus_name:
|
||||
self.disp(_("No bus name found"), 1)
|
||||
return
|
||||
self.disp(_("Bus name found: [%s]" % bus_name), 1)
|
||||
for method in methods:
|
||||
path, iface, command = method
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ class AdHocDBus(object):
|
|||
bus_names = [bus_name for bus_name in bus_names if '.' + prog_name in bus_name]
|
||||
if not bus_names:
|
||||
log.info("Can't find any bus for [%s]" % prog_name)
|
||||
return
|
||||
defer.returnValue(("", []))
|
||||
bus_names.sort()
|
||||
for bus_name in bus_names:
|
||||
if bus_name.endswith(prog_name):
|
||||
|
|
|
|||
Loading…
Reference in a new issue