Merge "IPAssociations Compute extension composite update"

This commit is contained in:
Jenkins 2015-07-15 15:37:00 +00:00 committed by Gerrit Code Review
commit cf189c8c38

View File

@ -14,16 +14,16 @@ See the License for the specific language governing permissions and
limitations under the License. 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 \ from cloudcafe.compute.extensions.ip_associations_api.client import \
IPAssociationsClient IPAssociationsClient
class IPAssociationsComposite(BaseComputeComposite): class IPAssociationsComposite(object):
_auth_composite = _ComputeAuthComposite
def __init__(self, auth_composite): def __init__(self, auth_composite=None):
super(IPAssociationsComposite, self).__init__(auth_composite) self.auth_composite = auth_composite or self._auth_composite()
self.client = IPAssociationsClient( self.client = IPAssociationsClient(**self.auth_composite.client_args)
**self.compute_auth_composite.client_args)
self.config = None self.config = None
self.behaviors = None self.behaviors = None