* The _profile_check() method will keep return True if profile name is found,
no matter whether version equal or bigger. The fix is just adding the
missing 'return False' if version check failed.
Signed-off-by: Gris Ge <fge(a)redhat.com>
---
plugin/smispy/smis_common.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugin/smispy/smis_common.py b/plugin/smispy/smis_common.py
index b0acce8..7b6924f 100644
--- a/plugin/smispy/smis_common.py
+++ b/plugin/smispy/smis_common.py
@@ -126,6 +126,8 @@ def _profile_check(profile_dict, profile_name, spec_ver,
(profile_name, spec_ver) +
"target SMI-S provider. Only version %s is supported" %
profile_dict[profile_name])
+ else:
+ return False
return True
--
1.8.3.1