diff options
author | Andy Grover <agrover@redhat.com> | 2014-01-08 15:52:25 -0800 |
---|---|---|
committer | Andy Grover <agrover@redhat.com> | 2014-01-08 15:52:25 -0800 |
commit | 9fa8e9f253206a6b28b025967c2bcd0b6ff0f361 (patch) | |
tree | 6af357a909b3386eb30edb955e5fa5f0f17686c3 | |
parent | f1b9122960653b4aeaa0e87e779ec61944558379 (diff) | |
download | rtslib-fb-9fa8e9f253206a6b28b025967c2bcd0b6ff0f361.tar.gz |
Remove 3rd argument to normalize_wwn
possible_wwns is no longer used by any callers.
Signed-off-by: Andy Grover <agrover@redhat.com>
-rw-r--r-- | rtslib/fabric.py | 2 | ||||
-rw-r--r-- | rtslib/utils.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/rtslib/fabric.py b/rtslib/fabric.py index 2a37b9e..3e82c8c 100644 --- a/rtslib/fabric.py +++ b/rtslib/fabric.py @@ -187,7 +187,7 @@ class _BaseFabricModule(CFSNode): according to the spec, and returns a tuple of our preferred string representation of the wwn, and what type it turned out to be. ''' - return normalize_wwn(self.wwn_types, wwn, self.wwns) + return normalize_wwn(self.wwn_types, wwn) def to_fabric_wwn(self, wwn): ''' diff --git a/rtslib/utils.py b/rtslib/utils.py index c5cbbe0..ca0e7bc 100644 --- a/rtslib/utils.py +++ b/rtslib/utils.py @@ -311,7 +311,7 @@ def _cleanse_wwn(wwn_type, wwn): return wwn -def normalize_wwn(wwn_types, wwn, possible_wwns=None): +def normalize_wwn(wwn_types, wwn): ''' Take a WWN as given by the user and convert it to a standard text representation. If possible_wwns is not None, verify that |