Merge ~gtrkiller/apache2-charm:master into apache2-charm:master

Proposed by Franco Luciano Forneron Buschiazzo
Status: Merged
Approved by: Tom Haddon
Approved revision: 18092db4718755d9a2f5d3954b8282ba12e9bb3e
Merged at revision: 01ac45870dfbd60f935d83b719ac411e4566d499
Proposed branch: ~gtrkiller/apache2-charm:master
Merge into: apache2-charm:master
Diff against target: 23 lines (+4/-3)
1 file modified
hooks/hooks.py (+4/-3)
Reviewer Review Type Date Requested Status
Tom Haddon Approve
Canonical IS Reviewers Pending
Review via email: mp+440038@code.launchpad.net

Commit message

Mellon config files hotfix

Description of the change

Mellon_create_metadata is replacing "-" for "_" in the hostname when creating the names of the files. This fixes it for that character in particular so we can now use hostnames containing "-".

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Tom Haddon (mthaddon) wrote :

lgtm

review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 01ac45870dfbd60f935d83b719ac411e4566d499

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/hooks/hooks.py b/hooks/hooks.py
2index f6d04c6..64c53e0 100755
3--- a/hooks/hooks.py
4+++ b/hooks/hooks.py
5@@ -790,14 +790,15 @@ def config_changed():
6 raise IOError
7 except IOError:
8 mellon_dir = "/etc/apache2/mellon"
9+ modified_servername = servername.replace("-", "_")
10 lines = [
11 '<Location />\n',
12 ' MellonSPPrivateKeyFile {}/https_{}.key\n'.format(
13- mellon_dir, servername),
14+ mellon_dir, modified_servername),
15 ' MellonSPCertFile {}/https_{}.cert\n'.format(
16- mellon_dir, servername),
17+ mellon_dir, modified_servername),
18 ' MellonSPMetadataFile {}/https_{}.xml\n'.format(
19- mellon_dir, servername),
20+ mellon_dir, modified_servername),
21 ' MellonIdPMetadataFile {}/IdpMetadata.xml\n'.format(
22 mellon_dir),
23 ' MellonEndpointPath /mellon\n',

Subscribers

People subscribed via source and target branches