Hi checkpoint guru's,
I am trying to print ha state info from firewalls but the output i am getting is not a json format, any tips to return my output in json or readable format?, below is my script and attached is my current output, thank you all
ha_state = self.run_script("clish -c '''show cluster state'''")
time.sleep(3)
show_ha_config = self.show_task(ha_state)
show_ha_config = show_ha_config["tasks"][0]["task-details"][0][
"output"
]
ha_decoded = base64.b64decode(
bytes(show_ha_config, "utf-8")
).decode("ascii")
ha_conf = ha_decoded.split("\n")
logout_result = self.api_call(self.node, "443", "logout", {}, self.sid)
return ha_conf