Skip to content

Commit f6a6a2c

Browse files
Use environment.get_value instead of os.environ (#3988)
It's more consistent and it can be important when things like ints are put into the environment.
1 parent 782bd00 commit f6a6a2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clusterfuzz/_internal/bot/tasks/utasks/fuzz_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1902,7 +1902,7 @@ def run(self):
19021902

19031903
logs.log(f'Raw crash count: {len(crashes)}')
19041904

1905-
project_name = os.environ['PROJECT_NAME']
1905+
project_name = environment.get_value('PROJECT_NAME')
19061906

19071907
# Process and save crashes to datastore.
19081908
bot_name = environment.get_value('BOT_NAME')

0 commit comments

Comments
 (0)