Merge "Port hitachi driver to Python 3"
This commit is contained in:
commit
d9a0f6cbb6
@ -244,7 +244,7 @@ class HBSDBasicLib(object):
|
||||
cmd = [cmd]
|
||||
|
||||
if args:
|
||||
if isinstance(args, six.text_type):
|
||||
if six.PY2 and isinstance(args, six.text_type):
|
||||
cmd += shlex.split(args.encode())
|
||||
else:
|
||||
cmd += shlex.split(args)
|
||||
|
@ -167,7 +167,7 @@ class HBSDHORCM(basic_lib.HBSDBasicLib):
|
||||
if not i.isdigit():
|
||||
msg = basic_lib.output_err(601, param='hitachi_horcm_numbers')
|
||||
raise exception.HBSDError(message=msg)
|
||||
self.conf.hitachi_horcm_numbers = map(int, numbers)
|
||||
self.conf.hitachi_horcm_numbers = [int(num) for num in numbers]
|
||||
inst = self.conf.hitachi_horcm_numbers[0]
|
||||
pair_inst = self.conf.hitachi_horcm_numbers[1]
|
||||
if inst == pair_inst:
|
||||
|
1
tox.ini
1
tox.ini
@ -61,6 +61,7 @@ commands =
|
||||
cinder.tests.unit.test_evaluator \
|
||||
cinder.tests.unit.test_exception \
|
||||
cinder.tests.unit.test_gpfs \
|
||||
cinder.tests.unit.test_hitachi_hbsd_horcm_fc \
|
||||
cinder.tests.unit.test_hitachi_hbsd_snm2_fc \
|
||||
cinder.tests.unit.test_hitachi_hbsd_snm2_iscsi \
|
||||
cinder.tests.unit.test_hp_xp_fc \
|
||||
|
Loading…
x
Reference in New Issue
Block a user