From: Abhijit Gadgil Date: Thu, 27 Apr 2023 03:53:55 +0000 (+0530) Subject: Fixes typo in `examples/pong_xapp.py` X-Git-Tag: 3.2.2~2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=ric-plt%2Fxapp-frame-py.git;a=commitdiff_plain;h=bc44805e53a5c84a32c4dfe09d32fe4d503acaca Fixes typo in `examples/pong_xapp.py` Changed `[RMR_MS_MSG_PAYLOAD]` to `[RMR_MS_PAYLOAD]` Issue-Id: RIC-974 Signed-off-by: Abhijit Gadgil Change-Id: I3f2d0a3263d231ded29dff51ad94841557d24a72 --- diff --git a/examples/pong_xapp.py b/examples/pong_xapp.py index 23db376..8cc28ae 100644 --- a/examples/pong_xapp.py +++ b/examples/pong_xapp.py @@ -31,7 +31,7 @@ def sixtyh(self, summary, sbuf): self.logger.info("pong registered 60000 handler called!") # see comment in ping about this; bytes does not work with the ric mdc logger currently print("pong 60000 handler received: {0}".format(summary)) - jpay = json.loads(summary[rmr.RMR_MS_MSG_PAYLOAD]) + jpay = json.loads(summary[rmr.RMR_MS_PAYLOAD]) self.rmr_rts(sbuf, new_payload=json.dumps({"ACK": jpay["test_send"]}).encode(), new_mtype=60001, retries=100) self.rmr_free(sbuf)