Skip to content

Commit af8985c

Browse files
committed
Bugfix: Invalid format specifier '%.1f' for object of type 'float'
Signed-off-by: Matthias Büchse <[email protected]>
1 parent 6376b3f commit af8985c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/iaas/flavor-naming/flavor-names-openstack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def main(argv):
140140
# Warn for strange sizes (want integer numbers, half allowed for < 10GiB)
141141
if flvram >= 10 and flvram != int(flvram) or flvram * 2 != int(flvram * 2):
142142
print(f"WARNING: Flavor {flv.name} uses discouraged uneven size "
143-
f"of memory {flvram:%.1f} GiB", file=sys.stderr)
143+
f"of memory {flvram:.1f} GiB", file=sys.stderr)
144144
if flvram < cpuram.ram:
145145
print(f"ERROR: Flavor {flv.name} has only {flvram:.1f} GiB RAM, "
146146
f"should have >= {cpuram.ram:.1f} GiB", file=sys.stderr)

0 commit comments

Comments
 (0)