digitc1 / AWSLandingZone

Repository for AWSLandingZone module developed by DIGIT.C.1
Apache License 2.0
1 stars 0 forks source link

Fix dependency on linked_status variable for update script #195

Closed silavjy closed 1 year ago

silavjy commented 1 year ago

When executing the EC-Update-lz.py script, the following error was thrown

Traceback (most recent call last): File "./EC-Update-LZ.py", line 1462, in main(sys.argv[1:]) File "./EC-Update-LZ.py", line 687, in main if seclog_status != Execution.FAIL and linked_status != Execution.FAIL: UnboundLocalError: local variable 'linked_status' referenced before assignment

Issue may be fixed by moving line 479 outside the if statement

From this:

image

To this:

image