diff options
author | Andy Grover <agrover@redhat.com> | 2013-02-07 14:32:02 -0800 |
---|---|---|
committer | Andy Grover <agrover@redhat.com> | 2013-02-07 14:32:02 -0800 |
commit | b4d034d77c8828f6d7a1ec9337913b0c4ea2ef00 (patch) | |
tree | 9b1c85eec493bd0a1f5a48bd957150306d8b1cc5 /rtslib/utils.py | |
parent | 9c17585650ab0c91220b27ec428e91a19d99a85f (diff) | |
download | rtslib-fb-b4d034d77c8828f6d7a1ec9337913b0c4ea2ef00.tar.gz |
Fix cleanse_wwn for unicode
str.translate() supports 2-args but unicode.translate doesn't.
Signed-off-by: Andy Grover <agrover@redhat.com>
Diffstat (limited to 'rtslib/utils.py')
-rw-r--r-- | rtslib/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rtslib/utils.py b/rtslib/utils.py index 26f453f..1463ff8 100644 --- a/rtslib/utils.py +++ b/rtslib/utils.py @@ -497,7 +497,7 @@ def _cleanse_wwn(wwn_type, wwn): Some wwns may have alternate text representations. Adjust to our preferred representation. ''' - wwn = wwn.strip() + wwn = str(wwn.strip()) if wwn_type in ('naa', 'eui'): if wwn.startswith("0x"): |