X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fscripts%2Fosm.py;fp=osmclient%2Fscripts%2Fosm.py;h=ca795456ce5e025679dad01ca1243bc534e8fb43;hb=aa2f17426996e97093f66701d1e3997101723655;hp=7af3013682efef64c314a64367190a2afd372f2c;hpb=e17cc1f266ae150d420db6d9177ed5a70ba362b1;p=osm%2Fosmclient.git diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index 7af3013..ca79545 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -5659,8 +5659,7 @@ def alarm_show(ctx, uuid): table = PrettyTable(["key", "attribute"]) try: # Arrange and return the response data - resp = resp.replace("ObjectId", "") - alarm = eval(resp) + alarm = resp.replace("ObjectId", "") for key in alarm_filter: if key == "uuid": value = alarm.get(key) @@ -5702,7 +5701,6 @@ def alarm_list(ctx, ns_id): if resp: # return the response data in a table resp = resp.replace("ObjectId", "") - resp = eval(resp) for alarm in resp: table.add_row( [