summaryrefslogtreecommitdiff
path: root/novaclient/v2
diff options
context:
space:
mode:
authorStephen Finucane <stephenfin@redhat.com>2022-04-06 11:02:19 +0100
committerTakashi Natsume <takanattie@gmail.com>2022-04-08 17:49:08 +0900
commitc408db2dd987c251e0d6f30280072d78d46515b0 (patch)
treee7c3c5470eb19a71e8941d3feda9439699ef5599 /novaclient/v2
parent52cdbd271ed9fbaa0f08a4f74f0a1c44552698fa (diff)
downloadpython-novaclient-c408db2dd987c251e0d6f30280072d78d46515b0.tar.gz
Update pre-commit hook, hacking versions
This was done with 'pre-commit autoupdate'. An invalid message is removed from the requirements.txt files as it no longer applies with pip's new dependency resolver. Change-Id: I01c3ece51f81d67c740e6faca6b77df7c9932435 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'novaclient/v2')
-rw-r--r--novaclient/v2/shell.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/novaclient/v2/shell.py b/novaclient/v2/shell.py
index dfe93c01..58823fc7 100644
--- a/novaclient/v2/shell.py
+++ b/novaclient/v2/shell.py
@@ -3231,15 +3231,15 @@ def _print_absolute_limits(limits):
other = {}
limit_names = []
columns = ['Name', 'Used', 'Max']
- for l in limits:
- map = limit_map.get(l.name, {'name': l.name, 'type': 'other'})
+ for limit in limits:
+ map = limit_map.get(limit.name, {'name': limit.name, 'type': 'other'})
name = map['name']
if map['type'] == 'max':
- max[name] = l.value
+ max[name] = limit.value
elif map['type'] == 'used':
- used[name] = l.value
+ used[name] = limit.value
else:
- other[name] = l.value
+ other[name] = limit.value
if 'Other' not in columns:
columns.append('Other')
if name not in limit_names: