I saw this when skimming through looking for something else.

Signed-off-by: Tony Asleson <tasle...@redhat.com>
---
 plugin/smispy/smis_cap.py | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/plugin/smispy/smis_cap.py b/plugin/smispy/smis_cap.py
index e027a22..23a3449 100644
--- a/plugin/smispy/smis_cap.py
+++ b/plugin/smispy/smis_cap.py
@@ -247,19 +247,7 @@ def _tgt_cap_set(smis_common, cim_sys_path, cap):
     if cim_sys_path.classname == 'LSIESG_MegaRAIDHBA':
         return
 
-    flag_fc_support = smis_common.profile_check(
-        SmisCommon.SNIA_FC_TGT_PORT_PROFILE,
-        SmisCommon.SMIS_SPEC_VER_1_4,
-        raise_error=False)
-    # One more check for NetApp Typo:
-    #   NetApp:     'FC Target Port'
-    #   SMI-S:      'FC Target Ports'
-    # Bug reported.
-    if not flag_fc_support:
-        flag_fc_support = smis_common.profile_check(
-            'FC Target Port',
-            SmisCommon.SMIS_SPEC_VER_1_4,
-            raise_error=False)
+    flag_fc_support = fc_tgt_is_supported(smis_common)
     flag_iscsi_support = smis_common.profile_check(
         SmisCommon.SNIA_ISCSI_TGT_PORT_PROFILE,
         SmisCommon.SMIS_SPEC_VER_1_4,
-- 
1.8.2.1


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Libstoragemgmt-devel mailing list
Libstoragemgmt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libstoragemgmt-devel

Reply via email to