Change-Id: I8e042d9e27d225d623a87418503ea0d71f864207
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
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)
if resp:
# return the response data in a table
resp = resp.replace("ObjectId", "")
- resp = eval(resp)
for alarm in resp:
table.add_row(
[