diff --git a/cli/env.py b/cli/env.py index 98c815f..0b96acf 100644 --- a/cli/env.py +++ b/cli/env.py @@ -27,9 +27,7 @@ ).replace( "_DICT", "", - ): ast.literal_eval(val) - if "DICT" in key - else val + ): (ast.literal_eval(val) if "DICT" in key else val) for key, val in dotenv_values(".vars").items() if val is not None }, # load development variables @@ -40,9 +38,7 @@ ).replace( "_DICT", "", - ): ast.literal_eval(val) - if "DICT" in key - else val + ): (ast.literal_eval(val) if "DICT" in key else val) for key, val in os.environ.items() if key.startswith("VAR_") and val is not None }, @@ -61,9 +57,7 @@ .replace( "SSM_", "", - ): ast.literal_eval(val) - if "_DICT" in key - else val + ): (ast.literal_eval(val) if "_DICT" in key else val) for key, val in dotenv_values(".secrets").items() if val is not None }, @@ -79,9 +73,7 @@ .replace( "SSM_", "", - ): ast.literal_eval(val) - if "DICT" in key - else val + ): (ast.literal_eval(val) if "DICT" in key else val) for key, val in os.environ.items() if key.startswith("SECRET_") or key.startswith("SSM_") and val is not None },