Merge "Ensure proper JSON serialization"

This commit is contained in:
Zuul 2019-09-28 21:31:02 +00:00 committed by Gerrit Code Review
commit 83d22bbfcf
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ class KeystoneSp(object):
self.protocols_return_list = list()
self.sp_data = self.module.params['sp_data']
if isinstance(self.sp_data, str):
self.sp_data = json.loads(self.sp_data.replace("'", '"'))
self.sp_data = json.loads(self.sp_data)
def populate_sp_data(self):
trusted_idp_list = self.sp_data['trusted_idp_list']

View File

@ -20,7 +20,7 @@
# User with_subelements instead, but in v1.x it's broken
- name: Set keystone_federated_identities fact
keystone_sp:
sp_data: "{{ keystone_sp }}"
sp_data: "{{ keystone_sp | to_json }}"
- name: Ensure domain which remote IDP users are mapped onto exists
keystone: