From ca1e15353e09da2778a37cf1c88f6b760ddf2bbb Mon Sep 17 00:00:00 2001 From: "Jay S. Bryant" Date: Tue, 22 Jul 2014 18:06:29 -0500 Subject: [PATCH] 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 --- cinder/volume/drivers/san/hp/hp_3par_fc.py | 1 + cinder/volume/drivers/san/hp/hp_3par_iscsi.py | 1 + 2 files changed, 2 insertions(+) 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 -- 2.45.2