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

fix syntactic errors

parent 0b2afcf1
Pipeline #31943 passed with stages
in 1 minute and 51 seconds
......@@ -68,7 +68,7 @@ class AutoDeploy(Resource):
# if tag = semver: deploy on prod+stage
if re.match(r"^(([0-9]+)\.([0-9]+)\.([0-9]+))$", tag):
app.logger.debug(
"commit on prod-branch with semver-tag detected: installing on prod+stage"
"commit with semver-tag detected: installing on prod+stage"
)
pullChartUri = (
os.environ["GITLAB_REGISTRY"]
......@@ -83,7 +83,7 @@ class AutoDeploy(Resource):
# deploy on test
elif branch == "master":
app.logger.debug(
"commit on master-branch without semver-tag detected: installing on test"
"commit on master without semver-tag detected: installing on test"
)
msgs, status = installFromDir(repositoryUrl, projectName)
output.extend(msgs)
......@@ -147,7 +147,7 @@ def _upgrade_installation(chartsDir, projectName, filenameBase, filename=None):
)
except subprocess.CalledProcessError as ex:
msg = "upgrading helm chart failed with return code {} -- STDOUT: {} -- STDERR: {}".format(
ex.cmd, ex.returncode, ex.stdout, ex.stderr
ex.returncode, ex.stdout, ex.stderr
)
app.logger.warning(msg)
return msg, "failure"
......@@ -172,7 +172,7 @@ def installFromRepo(pullChartUri, projectName):
)
except subprocess.CalledProcessError as ex:
msg = "pulling helm chart failed with return code {} -- STDOUT: {} -- STDERR: {}".format(
ex.cmd, ex.returncode, ex.stdout, ex.stderr
ex.returncode, ex.stdout, ex.stderr
)
app.logger.warning(msg)
return output, "failure"
......@@ -196,7 +196,7 @@ def installFromRepo(pullChartUri, projectName):
)
except subprocess.CalledProcessError as ex:
msg = "exporting helm chart failed with return code {} -- STDOUT: {} -- STDERR: {}".format(
ex.cmd, ex.returncode, ex.stdout, ex.stderr
ex.returncode, ex.stdout, ex.stderr
)
app.logger.warning(msg)
return output, "failure"
......@@ -232,7 +232,7 @@ def installFromDir(repositoryUrl, projectName):
)
except subprocess.CalledProcessError as ex:
msg = "cloning git repo failed with return code {} -- STDOUT: {} -- STDERR: {}".format(
ex.cmd, ex.returncode, ex.stdout, ex.stderr
ex.returncode, ex.stdout, ex.stderr
)
app.logger.warning(msg)
return output, "failure"
......
Supports Markdown
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