Correct wrong import statement in Magnum App

This patch fixes a wrong import statement in
contrib/plugins/magnum_plugin/magnum_plugin/__init__.py where it
tried to import client from magnumclient which is actually invalid.

Change-Id: I24a1c03de25e514a870a12f47f478d6b7f816975
Closes-bug: #1572139
This commit is contained in:
Madhuri Kumari 2016-05-12 23:11:51 +05:30
parent 8946b957f5
commit c659b2dbb5

View File

@ -15,10 +15,10 @@
import cfg
import time
import magnumclient
from magnumclient import client
from murano.common import auth_utils
from murano.dsl import session_local_storage
import magnumclient
from oslo_config import cfg as config
CONF = config.CONF
@ -57,7 +57,7 @@ class MagnumClient(object):
params = auth_utils.get_session_client_parameters(
service_type='container', region=region, conf=CONF,
session=session)
return magnumclient.client.Client(**params)
return client.Client(**params)
def create_baymodel(self, args):
baymodel = self._client.baymodels.create(**args)