not a string, already a dict
@@ -76,8 +76,8 @@ class CreateR:
str(e))
try:
r.hmset(payload['id'], metadata)
- r.hmset(ast.literal_eval(metadata['endpoint_data'])['ip-address'], {'poseidon_hash': payload['id']})
- r.sadd(ast.literal_eval(metadata['endpoint_data'])['ip-address'])
+ r.hmset(metadata['endpoint_data']['ip-address'], {'poseidon_hash': payload['id']})
+ r.sadd(metadata['endpoint_data']['ip-address'])
except Exception as e: # pragma: no cover
return (False,
'unable to store contents of the payload [ ' +
