summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2014-01-08 13:05:37 -0800
committerAndy Grover <agrover@redhat.com>2014-01-08 13:05:37 -0800
commitf1b9122960653b4aeaa0e87e779ec61944558379 (patch)
tree8c5fb488457059053543bd4ccf4bdff3c2b9b1e4
parent636a57f928cdfaed5ba5022cf3139b20f53c02c4 (diff)
downloadrtslib-fb-f1b9122960653b4aeaa0e87e779ec61944558379.tar.gz
Do not check WWN is present in normalize_wwn
For tcm_fc and maybe others, it should be possible to configure a target for a hw-based WWN before the WWN shows up in the list of WWNs. The kernel code allows and handles this case. The only downside is that a user might have a typo in entering a hw wwn by hand, and experience confusion when it is allowed but things don't work right. Clients may wish to warn the user if so. Signed-off-by: Andy Grover <agrover@redhat.com>
-rw-r--r--rtslib/utils.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/rtslib/utils.py b/rtslib/utils.py
index 8be374d..c5cbbe0 100644
--- a/rtslib/utils.py
+++ b/rtslib/utils.py
@@ -340,9 +340,6 @@ def normalize_wwn(wwn_types, wwn, possible_wwns=None):
else:
raise RTSLibError("WWN not valid as: %s" % ", ".join(wwn_types))
- if possible_wwns is not None and clean_wwn not in possible_wwns:
- raise RTSLibError("WWN not in possible WWNs")
-
return (clean_wwn, wwn_type)
def list_loaded_kernel_modules():