diff options
author | Stephen Finucane <sfinucan@redhat.com> | 2020-02-20 09:46:55 +0000 |
---|---|---|
committer | Stephen Finucane <sfinucan@redhat.com> | 2020-02-21 09:48:38 +0000 |
commit | 8f50f84981f354e0dbac0af843d7d936c319b77f (patch) | |
tree | 49b0f7e78b6e298cc6c6956cbcedf3e9347e149d /novaclient/v2 | |
parent | c4c44bcb2df01b77089139b267b1219008f9421e (diff) | |
download | python-novaclient-8f50f84981f354e0dbac0af843d7d936c319b77f.tar.gz |
Bump to hacking 2.x
This is compatible with Python 3-only syntax.
Change-Id: I462f4242b9a5f8d8cd6b0cb3d328dfd9d93ba200
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'novaclient/v2')
-rw-r--r-- | novaclient/v2/shell.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/novaclient/v2/shell.py b/novaclient/v2/shell.py index d8de74e8..773e6ce0 100644 --- a/novaclient/v2/shell.py +++ b/novaclient/v2/shell.py @@ -3112,11 +3112,10 @@ def _print_absolute_limits(limits): limit_list = [] for name in limit_names: - l = Limit(name, - used.get(name, "-"), - max.get(name, "-"), - other.get(name, "-")) - limit_list.append(l) + limit_list.append(Limit( + name, used.get(name, '-'), max.get(name, '-'), + other.get(name, '-'), + )) utils.print_list(limit_list, columns) |