Project

General

Profile

« Previous | Next » 

Revision 26f6a4aa

Added by Serghei Mihai over 9 years ago

idps dump fix

View differences:

uauth/organization/management/commands/sync_federations.py
107 107
                metadata_dest_filename = os.path.join(idp_dir, '%s.xml' % slugify(name))
108 108
                with open(metadata_dest_filename, 'w') as metadata:
109 109
                    metadata.write(entities)
110
                    idps.append({'METADATA': os.path.abspath(metadata_dest_filename), 'ENTITY_ID': entity_id,
111
                                 'NAME': name})
112 110

  
113
                with open('uauth/idps.json', 'w') as idps_file:
114
                    json.dump(idps, idps_file)
111
                idps.append({'METADATA': os.path.abspath(metadata_dest_filename),
112
                             'ENTITY_ID': entity_id,
113
                             'NAME': name})
114

  
115
        with open(os.path.join(settings.BASE_DIR, 'idps.json'), 'w') as idps_file:
116
            json.dump(idps, idps_file)

Also available in: Unified diff