Skip to content

Commit

Permalink
Do not use -p in case of empty OPenShift args (#68)
Browse files Browse the repository at this point in the history
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
  • Loading branch information
phracek authored Jun 24, 2024
1 parent 24a3f5a commit 72761ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container_ci_suite/openshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ def deploy_template(
local_template = utils.download_template(template_name=template)
if not local_template:
return False
oc_cmd = f"new-app {local_template} --name {name_in_template} -p NAMESPACE={self.namespace} -p {openshift_args}"
oc_cmd = f"new-app {local_template} --name {name_in_template} -p NAMESPACE={self.namespace} {openshift_args}"
print(f"Deploy template by command: oc {oc_cmd}")
try:
output = self.run_oc_command(f"{oc_cmd}", json_output=False)
Expand Down

0 comments on commit 72761ff

Please sign in to comment.