From fdea7e80d9b45a39ab5a8078db7095dd730f6942 Mon Sep 17 00:00:00 2001
From: Eric Harney <eharney@redhat.com>
Date: Tue, 17 Mar 2015 12:36:01 -0400
Subject: [PATCH] LIO: Use rtslib property instead of private method

We should not use private methods from a dependent library.

Change-Id: Idc0398ccd2974c56ac95294d6549b60c367a7338
---
 cinder/cmd/rtstool.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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.'))
-- 
2.45.2