changeset 3857:7d11e42b150e

cli (blog/set): show ID of published item
author Goffi <goffi@goffi.org>
date Thu, 14 Jul 2022 12:55:30 +0200
parents bc7f9d0a404f
children 6e785662dd7d
files sat_frontends/jp/cmd_blog.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)