Reviewed: https://review.openstack.org/184988 Committed: https://git.openstack.org/cgit/openstack/python-designateclient/commit/?id=34d14b06d91b3d2e90d6531972bc25b8a8de53ab Submitter: Jenkins Branch: master
commit 34d14b06d91b3d2e90d6531972bc25b8a8de53ab Author: Davide Guerri <email address hidden> Date: Fri May 22 11:22:23 2015 +0100
Move all_tenants and edit_managed attributes to designate Client
Initializing designate client with a pre-existing keystone session won't work as designate expects keystone session to have the 'all_tenants' and 'edit_managed' attributes:
Example code:
keystone_session = ksc_session.Session( auth=keystone_auth, verify=True, cert=my_cert )
than later:
self._designate_client = designate_client( session=keystone_session, region_name=region_name )
with that code, wrap_api_call() will raise an exception:
AttributeError: 'Session' object has no attribute 'all_tenants'
Same goes for 'edit_managed'.
This patch moves both attributes from Keystone session to designate Client.
Closes-Bug: 1457821 Change-Id: I13d6c9ed46406fefc8cfa5de46811e4be009f1af
Reviewed: https:/ /review. openstack. org/184988 /git.openstack. org/cgit/ openstack/ python- designateclient /commit/ ?id=34d14b06d91 b3d2e90d6531972 bc25b8a8de53ab
Committed: https:/
Submitter: Jenkins
Branch: master
commit 34d14b06d91b3d2 e90d6531972bc25 b8a8de53ab
Author: Davide Guerri <email address hidden>
Date: Fri May 22 11:22:23 2015 +0100
Move all_tenants and edit_managed attributes to designate Client
Initializing designate client with a pre-existing keystone session
won't work as designate expects keystone session to have the
'all_tenants' and 'edit_managed' attributes:
Example code:
)
than later:
)
with that code, wrap_api_call() will raise an exception:
Attribute Error: 'Session' object has no attribute 'all_tenants'
Same goes for 'edit_managed'.
This patch moves both attributes from Keystone session to designate
Client.
Closes-Bug: 1457821 efc8cfa5de46811 e4be009f1af
Change-Id: I13d6c9ed46406f