Fix import of common libraries from Manila client

Manila removed the copy of oslo inclubated code (following a global goal for
Ocata) and this lead to some changes post-Newton. See:
https://review.openstack.org/#/c/377604/

Change-Id: Ibda32791aa9b64966cd18daf001416e57a2c5e93
This commit is contained in:
Luigi Toscano 2016-11-11 11:57:07 +01:00
parent a18c8a897a
commit 04d73360f7
3 changed files with 12 additions and 3 deletions

View File

@ -14,6 +14,9 @@
# limitations under the License.
try:
from manilaclient.common.apiclient import exceptions as manila_ex
except ImportError:
from manilaclient.openstack.common.apiclient import exceptions as manila_ex
import mock
from oslo_utils import uuidutils

View File

@ -13,6 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
try:
from manilaclient.common.apiclient import exceptions as manila_ex
except ImportError:
from manilaclient.openstack.common.apiclient import exceptions as manila_ex
import mock

View File

@ -14,6 +14,9 @@
# limitations under the License.
import manilaclient.client as manila_client
try:
from manilaclient.common.apiclient import exceptions as manila_ex
except ImportError:
from manilaclient.openstack.common.apiclient import exceptions as manila_ex
from oslo_config import cfg