Skip to content

Commit

Permalink
In case of shared_cluster is not used, then
Browse files Browse the repository at this point in the history
do not use it at all.

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
  • Loading branch information
phracek committed Feb 12, 2025
1 parent 0679952 commit 5f6f62c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions container_ci_suite/helm.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ def __init__(
package_name: str,
tarball_dir: Path,
delete_prj: bool = True,
shared_cluster: bool = True,
shared_cluster: bool = False,
remote: bool = False
):
self.path: Path = path
self.version: str = ""
self.package_name: str = package_name
self.tarball_dir = tarball_dir
self.delete_prj: bool = delete_prj
if shared_cluster:
self.shared_cluster = True
if not shared_cluster:
self.shared_cluster = shared_cluster
else:
self.shared_cluster = utils.is_shared_cluster(test_type="helm")
self.create_prj: bool = True
Expand Down
2 changes: 1 addition & 1 deletion container_ci_suite/openshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(
):
self.create_prj = create_prj
self.delete_prj = delete_prj
if shared_cluster:
if not shared_cluster:
self.shared_cluster = shared_cluster
else:
self.shared_cluster = utils.is_shared_cluster(test_type="ocp4")
Expand Down

0 comments on commit 5f6f62c

Please sign in to comment.