Skip to content

Commit

Permalink
Fix shebang, handle 1x0 disk properly.
Browse files Browse the repository at this point in the history
Signed-off-by: Kurt Garloff <kurt@garloff.de>
  • Loading branch information
garloff committed Dec 18, 2023
1 parent 4a8d503 commit d7fb970
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Tests/iaas/flavor-naming/flavor-name-check.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# !/usr/bin/env python3
#!/usr/bin/env python3
# vim: set ts=4 sw=4 et:
#
"""Flavor naming checker
https://github.com/SovereignCloudStack/Operational-Docs/
https://github.com/SovereignCloudStack/standards/Test/iaas/flavor-naming/
Return codes:
0: Matching
Expand Down Expand Up @@ -424,6 +424,11 @@ def __init__(self, string, forceold=False):
except AttributeError:
self.nrdisks = 1

def input(self):
super().input()
if not self.nrdisks or not self.disksize:
self.parsed = 0


class Hype(Prop):
"Class repesenting Hypervisor"
Expand Down

0 comments on commit d7fb970

Please sign in to comment.