From d7fb970c0f959edb1c86e6a771591e590d51422b Mon Sep 17 00:00:00 2001 From: Kurt Garloff Date: Mon, 18 Dec 2023 10:51:25 +0100 Subject: [PATCH] Fix shebang, handle 1x0 disk properly. Signed-off-by: Kurt Garloff --- Tests/iaas/flavor-naming/flavor-name-check.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Tests/iaas/flavor-naming/flavor-name-check.py b/Tests/iaas/flavor-naming/flavor-name-check.py index c6188f162..e20bdf6db 100755 --- a/Tests/iaas/flavor-naming/flavor-name-check.py +++ b/Tests/iaas/flavor-naming/flavor-name-check.py @@ -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 @@ -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"