From 5bfa809086a4cd09a85427c4cb7dacde5f257d5b Mon Sep 17 00:00:00 2001 From: abin Date: Tue, 23 May 2023 16:48:56 +0530 Subject: [PATCH] fixup! Remove Gramine dependencies that are not needed at runtime Signed-off-by: abin --- gsc.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/gsc.py b/gsc.py index b28c36a3..601db2f8 100755 --- a/gsc.py +++ b/gsc.py @@ -22,15 +22,14 @@ import yaml # pylint: disable=import-error def test_trueish(value): - if bool(value) is True: - value = value.casefold() - if not value or value in ('false', 'off', 'no'): - return False - if value in ('true', 'on', 'yes'): - return True - if value.isdigit(): - return bool(int(value)) - raise ValueError(f'Invalid value for trueish: {value!r}') + value = value.casefold() + if not value or value in ('false', 'off', 'no'): + return False + if value in ('true', 'on', 'yes'): + return True + if value.isdigit(): + return bool(int(value)) + raise ValueError(f'Invalid value for trueish: {value!r}') def gsc_image_name(original_image_name): return f'gsc-{original_image_name}'