Merge lp:~gnuoy/charm-helpers/validate_users into lp:charm-helpers

Proposed by Liam Young
Status: Merged
Merged at revision: 546
Proposed branch: lp:~gnuoy/charm-helpers/validate_users
Merge into: lp:charm-helpers
Diff against target: 19 lines (+3/-3)
1 file modified
charmhelpers/contrib/openstack/amulet/utils.py (+3/-3)
To merge this branch: bzr merge lp:~gnuoy/charm-helpers/validate_users
Reviewer Review Type Date Requested Status
charmers Pending
Review via email: mp+288753@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'charmhelpers/contrib/openstack/amulet/utils.py'
--- charmhelpers/contrib/openstack/amulet/utils.py 2016-03-07 07:10:23 +0000
+++ charmhelpers/contrib/openstack/amulet/utils.py 2016-03-11 10:59:16 +0000
@@ -157,12 +157,12 @@
157 if e['name'] == act.name:157 if e['name'] == act.name:
158 a = {'enabled': act.enabled, 'name': act.name,158 a = {'enabled': act.enabled, 'name': act.name,
159 'email': act.email, 'id': act.id}159 'email': act.email, 'id': act.id}
160 if api_version == 2:160 if api_version == 3:
161 a['tenantId'] = act.tenantId
162 else:
163 a['default_project_id'] = getattr(act,161 a['default_project_id'] = getattr(act,
164 'default_project_id',162 'default_project_id',
165 'none')163 'none')
164 else:
165 a['tenantId'] = act.tenantId
166 found = True166 found = True
167 ret = self._validate_dict_data(e, a)167 ret = self._validate_dict_data(e, a)
168 if ret:168 if ret:

Subscribers

People subscribed via source and target branches