diff --git a/cloud_build/cloud_build.py b/cloud_build/cloud_build.py index 9f17409..1931093 100755 --- a/cloud_build/cloud_build.py +++ b/cloud_build/cloud_build.py @@ -196,6 +196,8 @@ class CB: with open(stdout_to_file, 'w') as f: if p.stdout: f.write(p.stdout.read().decode()) + if p.stdout is not None: + p.stdout.close() else: rc = subprocess.call(cmd) maybe_fail(string, rc)