Skip to content

Commit

Permalink
fixup! Remove Gramine dependencies that are not needed at runtime
Browse files Browse the repository at this point in the history
Signed-off-by: abin <[email protected]>
  • Loading branch information
amathew3 committed May 23, 2023
1 parent f10b7a1 commit 5694b79
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions gsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@
import yaml # pylint: disable=import-error

def test_trueish(value):
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}')
if bool(value) is not False:
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}'
Expand Down

0 comments on commit 5694b79

Please sign in to comment.