From 345e44740945b8bc4904169d9da88d27cc897361 Mon Sep 17 00:00:00 2001 From: Leonardo Maycotte Date: Tue, 14 Jul 2015 17:30:01 -0500 Subject: [PATCH] IPAssociations Compute extension composite update - Updating the IPAssociationsComposite to use directly the _ComputeAuthComposite so there is no dependency on the on the global ComputeComposite so the extension can be imported directly. Change-Id: I5895762013e0c2e4f5b0cce526dc913e3f00a98d --- .../extensions/ip_associations_api/composites.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cloudcafe/compute/extensions/ip_associations_api/composites.py b/cloudcafe/compute/extensions/ip_associations_api/composites.py index 1385e7f5..5746fc76 100644 --- a/cloudcafe/compute/extensions/ip_associations_api/composites.py +++ b/cloudcafe/compute/extensions/ip_associations_api/composites.py @@ -14,16 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. """ -from cloudcafe.compute.common.composites import BaseComputeComposite +from cloudcafe.compute.composites import _ComputeAuthComposite from cloudcafe.compute.extensions.ip_associations_api.client import \ IPAssociationsClient -class IPAssociationsComposite(BaseComputeComposite): +class IPAssociationsComposite(object): + _auth_composite = _ComputeAuthComposite - def __init__(self, auth_composite): - super(IPAssociationsComposite, self).__init__(auth_composite) - self.client = IPAssociationsClient( - **self.compute_auth_composite.client_args) + def __init__(self, auth_composite=None): + self.auth_composite = auth_composite or self._auth_composite() + self.client = IPAssociationsClient(**self.auth_composite.client_args) self.config = None self.behaviors = None