File tree 2 files changed +5
-6
lines changed
src/clusterfuzz/_internal
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1077,11 +1077,10 @@ def key_fn(crash):
1077
1077
1078
1078
def _get_issue_metadata_from_environment (variable_name ):
1079
1079
"""Get issue metadata from environment."""
1080
- values = str ( environment .get_value_string (variable_name , '' ) ).split (',' )
1080
+ values = environment .get_value_raw (variable_name , '' ).split (',' )
1081
1081
# Allow a variation with a '_1' to specified. This is needed in cases where
1082
1082
# this is specified in both the job and the bot environment.
1083
- values .extend (
1084
- str (environment .get_value_string (variable_name + '_1' , '' )).split (',' ))
1083
+ values .extend (environment .get_value_raw (variable_name + '_1' , '' ).split (',' ))
1085
1084
return [value .strip () for value in values if value .strip ()]
1086
1085
1087
1086
Original file line number Diff line number Diff line change @@ -596,9 +596,9 @@ def get_ubsan_disabled_options():
596
596
}
597
597
598
598
599
- def get_value_string ( environment_variable , default_value = None ):
600
- """Get environment variable (as a string) ."""
601
- return os .getenv ( environment_variable , default_value )
599
+ def get_value_raw ( var : str , default : Optional [ str ] = None ) -> Optional [ str ] :
600
+ """Returns environment variable `var` directly, without evaluating it ."""
601
+ return os .environ . get ( var , default )
602
602
603
603
604
604
def get_value (environment_variable , default_value = None , env = None ):
You can’t perform that action at this time.
0 commit comments