Skip to content

Commit

Permalink
Revert previous change but nicer (#65)
Browse files Browse the repository at this point in the history
This reverts the previous change and keeps both versions of the
key value pairs and how they are organized.

Signed-off-by: David Brown <dmlb2000@gmail.com>
  • Loading branch information
dmlb2000 committed Mar 5, 2019
1 parent 2778d92 commit 8637f72
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pacifica/policy/search_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,10 @@ def get_trans_kvp(cls, trans_id):
)
)
kvp_hash = resp.json().get('key_values', {})
return kvp_hash
return {
'key_value_hash': kvp_hash,
'key_value_objs': [{'key': key, 'value': value} for key, value in kvp_hash.items()]
}

@classmethod
def get_prop_release(cls, prop_id):
Expand Down

0 comments on commit 8637f72

Please sign in to comment.