cli (pubsub): use PEP when service is not specified in error message.
This commit is contained in:
parent
dec2fa48bc
commit
fa55bc6fb9
1 changed files with 2 additions and 1 deletions
|
|
@ -85,8 +85,9 @@ class NodeInfo(base.CommandBase):
|
||||||
)
|
)
|
||||||
except BridgeException as e:
|
except BridgeException as e:
|
||||||
if e.condition == "item-not-found":
|
if e.condition == "item-not-found":
|
||||||
|
service = self.args.service or "PEP"
|
||||||
self.disp(
|
self.disp(
|
||||||
f"The node {self.args.node} doesn't exist on {self.args.service}",
|
f"The node {self.args.node} doesn't exist on {service}",
|
||||||
error=True,
|
error=True,
|
||||||
)
|
)
|
||||||
self.host.quit(C.EXIT_NOT_FOUND)
|
self.host.quit(C.EXIT_NOT_FOUND)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue