Merge lp:~negronjl/charms/precise/ceph/lp1307712 into lp:~openstack-charmers-archive/charms/precise/ceph/trunk

Proposed by Juan L. Negron
Status: Superseded
Proposed branch: lp:~negronjl/charms/precise/ceph/lp1307712
Merge into: lp:~openstack-charmers-archive/charms/precise/ceph/trunk
Diff against target: 11 lines (+1/-1)
1 file modified
hooks/ceph.py (+1/-1)
To merge this branch: bzr merge lp:~negronjl/charms/precise/ceph/lp1307712
Reviewer Review Type Date Requested Status
James Page Approve
OpenStack Charmers Pending
Review via email: mp+215757@code.launchpad.net

This proposal has been superseded by a proposal from 2015-03-31.

Description of the change

Fix for LP:1307712

Any charm with "key" in their service name will fail the client relation in ceph. This makes the search for "key" a bit more specific as to try to avoid naming conflicts

To post a comment you must log in.
Revision history for this message
James Page (james-page) wrote :

LGTM

review: Approve
Revision history for this message
Edward Hope-Morley (hopem) wrote :

Is 'key=<val>' valid i.e. no whitespace around '='? If so this will need adjusting. Maybe better to use regex to match the "\s=\s" then split on '=' and strip whitepace?

Revision history for this message
Juan L. Negron (negronjl) wrote :

Ed:

From what I read in the code of the different charms, key=<val> is not valid ... it is key = <val> ( with the spaces in there ).

Unmerged revisions

70. By Juan L. Negron

Be more specific when looking for a key as not to conflict with service names

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/ceph.py'
2--- hooks/ceph.py 2013-09-23 10:19:06 +0000
3+++ hooks/ceph.py 2014-04-14 20:57:24 +0000
4@@ -191,7 +191,7 @@
5 key = raw_key
6 else:
7 for element in raw_key.splitlines():
8- if 'key' in element:
9+ if 'key = ' in element:
10 key = element.split(' = ')[1].strip() # IGNORE:E1103
11 return key
12

Subscribers

People subscribed via source and target branches