From: Jay S. Bryant Date: Tue, 22 Jul 2014 23:06:29 +0000 (-0500) Subject: Add explicit import of _ to hp_3par_fc and iscsi X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=ca1e15353e09da2778a37cf1c88f6b760ddf2bbb;p=openstack-build%2Fcinder-build.git Add explicit import of _ to hp_3par_fc and iscsi Messages using translation were added to the hp_3par_fc and hp_3par_iscsi files but an explicit import of gettextutils _ was not included. This fixes that problem. Change-Id: I2555860c6525a00295e823ab8c826b2bec6a3098 Closes-Bug: 1347184 --- diff --git a/cinder/volume/drivers/san/hp/hp_3par_fc.py b/cinder/volume/drivers/san/hp/hp_3par_fc.py index e5cb9aae2..13b200b0b 100644 --- a/cinder/volume/drivers/san/hp/hp_3par_fc.py +++ b/cinder/volume/drivers/san/hp/hp_3par_fc.py @@ -34,6 +34,7 @@ try: except ImportError: hpexceptions = None +from cinder.openstack.common.gettextutils import _ from cinder.openstack.common import log as logging from cinder import utils import cinder.volume.driver diff --git a/cinder/volume/drivers/san/hp/hp_3par_iscsi.py b/cinder/volume/drivers/san/hp/hp_3par_iscsi.py index 94900fafa..a631a427d 100644 --- a/cinder/volume/drivers/san/hp/hp_3par_iscsi.py +++ b/cinder/volume/drivers/san/hp/hp_3par_iscsi.py @@ -35,6 +35,7 @@ except ImportError: hpexceptions = None from cinder import exception +from cinder.openstack.common.gettextutils import _ from cinder.openstack.common import log as logging from cinder import utils import cinder.volume.driver