Verified Commit 706e7edb authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

fix syntactic errors

parent 50578b15
Pipeline #32007 failed with stages
in 25 seconds
......@@ -201,14 +201,18 @@ def installFromRepo(pullChartUri):
for filename in listdir(helmValuesDir):
filenameBase = path.splitext(filename)[0]
if '-prod.' in filename and status != 'failure':
app.logger.info('upgrading helm chart {} for prod environment'.format(projectName))
app.logger.info(
'upgrading helm chart {} for prod environment'.format(projectName)
)
msg, status = _upgrade_installation(
helmChartDir, projectName, filenameBase, filename
)
output.append(msg)
valuesFound = True
elif '-stage.' in filename and status != 'failure':
app.logger.info('upgrading helm chart {} for stage environment'.format(projectName))
app.logger.info(
'upgrading helm chart {} for stage environment'.format(projectName)
)
msg, status = _upgrade_installation(
helmChartDir, projectName, filenameBase, filename
)
......@@ -226,7 +230,13 @@ def installFromRepo(pullChartUri):
status = 'failure'
rmtree(pulledChartsDir)
try:
proc = subprocess.run('helm chart remove {}'.format(pullChartUri), shell=True, capture_output=True, text=True, check=True)
proc = subprocess.run(
'helm chart remove {}'.format(pullChartUri),
shell=True,
capture_output=True,
text=True,
check=True,
)
except subprocess.CalledProcessError as ex:
msg = 'removing helm chart from local repository failed with return code {} -- STDOUT: {} -- STDERR: {}'.format(
ex.returncode, ex.stdout, ex.stderr
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment