From: Patrick East <patrick.east@purestorage.com>
Date: Fri, 18 Dec 2015 21:48:49 +0000 (-0800)
Subject: Fix python 3.x import issues with pure.py
X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=cf112608ef7b27c4adceef5161779fd4b590ffc0;p=openstack-build%2Fcinder-build.git

Fix python 3.x import issues with pure.py

The older import was not compatible with python 3.x, only 2.x. A simple
fix is to adjust how we are importing the module.

Change-Id: Ic1d69c676af1adde9bd305431338c16a058fccf6
Closes-Bug: 1527755
---

diff --git a/cinder/volume/drivers/pure.py b/cinder/volume/drivers/pure.py
index 66c6c8214..6dd4fbe18 100644
--- a/cinder/volume/drivers/pure.py
+++ b/cinder/volume/drivers/pure.py
@@ -38,7 +38,7 @@ from cinder.volume import utils as volume_utils
 from cinder.zonemanager import utils as fczm_utils
 
 try:
-    import purestorage
+    from purestorage import purestorage
 except ImportError:
     purestorage = None