jp (pubsub): psItemGet has been renamed to psItemsGet as several items are gotten
This commit is contained in:
parent
2449721982
commit
5af5b344e5
1 changed files with 5 additions and 5 deletions
|
|
@ -272,17 +272,17 @@ class Get(base.CommandBase):
|
|||
# TODO: add MAM filters
|
||||
|
||||
|
||||
def psItemGetCb(self, ps_result):
|
||||
def psItemsGetCb(self, ps_result):
|
||||
self.output(ps_result[0])
|
||||
self.host.quit(C.EXIT_OK)
|
||||
|
||||
def psItemGetEb(self, failure_):
|
||||
def psItemsGetEb(self, failure_):
|
||||
self.disp(u"can't get pubsub items: {reason}".format(
|
||||
reason=failure_), error=True)
|
||||
self.host.quit(C.EXIT_BRIDGE_ERRBACK)
|
||||
|
||||
def start(self):
|
||||
self.host.bridge.psItemGet(
|
||||
self.host.bridge.psItemsGet(
|
||||
self.args.service,
|
||||
self.args.node,
|
||||
self.args.max,
|
||||
|
|
@ -290,8 +290,8 @@ class Get(base.CommandBase):
|
|||
self.args.sub_id,
|
||||
{},
|
||||
self.profile,
|
||||
callback=self.psItemGetCb,
|
||||
errback=self.psItemGetEb)
|
||||
callback=self.psItemsGetCb,
|
||||
errback=self.psItemsGetEb)
|
||||
|
||||
|
||||
class Affiliations(base.CommandBase):
|
||||
|
|
|
|||
Loading…
Reference in a new issue