# HG changeset patch # User Goffi # Date 1657796130 -7200 # Node ID 7d11e42b150e0ae17bbd3a75796825a943135674 # Parent bc7f9d0a404f598a660e7285c4b918280e102e4c cli (blog/set): show ID of published item diff -r bc7f9d0a404f -r 7d11e42b150e sat_frontends/jp/cmd_blog.py --- a/sat_frontends/jp/cmd_blog.py Thu Jul 14 12:55:30 2022 +0200 +++ b/sat_frontends/jp/cmd_blog.py Thu Jul 14 12:55:30 2022 +0200 @@ -225,7 +225,7 @@ await self.setMbDataContent(content, mb_data) try: - await self.host.bridge.mbSend( + item_id = await self.host.bridge.mbSend( self.args.service, self.args.node, data_format.serialise(mb_data), @@ -235,7 +235,7 @@ self.disp(f"can't send item: {e}", error=True) self.host.quit(C.EXIT_BRIDGE_ERRBACK) else: - self.disp("Item published") + self.disp(f"Item published with ID {item_id}") self.host.quit(C.EXIT_OK)