diff options
author | Jan Safranek <jsafrane@redhat.com> | 2013-11-19 12:15:30 +0100 |
---|---|---|
committer | Jan Safranek <jsafrane@redhat.com> | 2013-11-19 12:15:30 +0100 |
commit | 7d5349fe4de2904ae1946b31512b43a6074be2ac (patch) | |
tree | 8754c45599d0d0d9dbf6ddbe9a85f5f7027b9cb5 /commands/storage/lmi | |
parent | ce70c3bb3fd16a4b1074e00bd04dabaff886564a (diff) | |
download | openlmi-scripts-7d5349fe4de2904ae1946b31512b43a6074be2ac.tar.gz openlmi-scripts-7d5349fe4de2904ae1946b31512b43a6074be2ac.tar.xz openlmi-scripts-7d5349fe4de2904ae1946b31512b43a6074be2ac.zip |
Fixed str2size returning 'long' instead of 'int'.
Diffstat (limited to 'commands/storage/lmi')
-rw-r--r-- | commands/storage/lmi/scripts/storage/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/storage/lmi/scripts/storage/common.py b/commands/storage/lmi/scripts/storage/common.py index d0fb5f5..127e464 100644 --- a/commands/storage/lmi/scripts/storage/common.py +++ b/commands/storage/lmi/scripts/storage/common.py @@ -205,7 +205,7 @@ def str2size(size, additional_unit_size=None, additional_unit_suffix=None): if not m: if (additional_unit_suffix and suffix.upper() == additional_unit_suffix.upper()): - m = additional_unit_size + m = int(additional_unit_size) else: # Sort the units by their size units = multipliers.items() |