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 8e4e3cd commit 5bfa809
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions gsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
Expand Down

0 comments on commit 5bfa809

Please sign in to comment.