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
This commit is contained in:
Leonardo Maycotte 2015-07-14 17:30:01 -05:00
parent 2f9e5ecedd
commit 345e447409
1 changed files with 6 additions and 6 deletions

View File

@ -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