wcsinstd/deploy: encode title to utf-8 before using it
This commit is contained in:
parent
f50fa2c082
commit
6afdbeea55
|
@ -172,6 +172,7 @@ class DeployInstance(object):
|
|||
idp_metadata = ET.parse(file(os.path.join(self.skel_dir, 'idp-metadata.xml')))
|
||||
entity_id = idp_metadata.getroot().attrib['entityID']
|
||||
idp_key = get_provider_key(entity_id)
|
||||
title = self.title.encode('utf-8')
|
||||
|
||||
wcs_cfg['identification'] = {'methods': ['idp']}
|
||||
wcs_cfg['idp'] = {
|
||||
|
@ -179,12 +180,12 @@ class DeployInstance(object):
|
|||
'metadata': 'provider-%s-metadata.xml' % idp_key,
|
||||
'metadata_url': entity_id,
|
||||
'publickey_url': None,
|
||||
'admin-attributes': { 'role': self.title + ' - Administrateur' },
|
||||
'admin-attributes': { 'role': title + ' - Administrateur' },
|
||||
'role': 2}}
|
||||
wcs_cfg['sp'] = {
|
||||
'common_domain': None,
|
||||
'common_domain_getter_url': None,
|
||||
'organization_name': self.title.encode('utf-8'),
|
||||
'organization_name': title,
|
||||
'privatekey': 'private-key.pem',
|
||||
'publickey': 'public-key.pem'}
|
||||
wcs_cfg['sp'].update(service_provider_configuration)
|
||||
|
|
Reference in New Issue