From: Eric Harney Date: Tue, 17 Mar 2015 16:36:01 +0000 (-0400) Subject: LIO: Use rtslib property instead of private method X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=fdea7e80d9b45a39ab5a8078db7095dd730f6942;p=openstack-build%2Fcinder-build.git LIO: Use rtslib property instead of private method We should not use private methods from a dependent library. Change-Id: Idc0398ccd2974c56ac95294d6549b60c367a7338 --- diff --git a/cinder/cmd/rtstool.py b/cinder/cmd/rtstool.py index 4ec404a9e..c132f28f3 100644 --- a/cinder/cmd/rtstool.py +++ b/cinder/cmd/rtstool.py @@ -77,7 +77,7 @@ def create(backing_device, name, userid, password, iser_enabled, try: if iser_enabled == 'True': - portal._set_iser(1) + portal.iser = True except rtslib.utils.RTSLibError: print(_('Error enabling iSER for NetworkPortal: please ensure that ' 'RDMA is supported on your iSCSI port.'))