Skip to content

Commit

Permalink
fix(reana_dev): lint cluster.py (#811)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlemesh committed Jul 31, 2024
1 parent c8ba9ff commit 1086dca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reana/reana_dev/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def cluster_commands():
)
@click.option(

Check warning on line 74 in reana/reana_dev/cluster.py

View check run for this annotation

Codecov / codecov/patch

reana/reana_dev/cluster.py#L74

Added line #L74 was not covered by tests
"--kind-node-version",
help=f"Which kindest/node image version to use?",
help="Which kindest/node image version to use?",
)
@cluster_commands.command(name="cluster-create")
def cluster_create(

Check warning on line 79 in reana/reana_dev/cluster.py

View check run for this annotation

Codecov / codecov/patch

reana/reana_dev/cluster.py#L79

Added line #L79 was not covered by tests
Expand Down Expand Up @@ -175,8 +175,8 @@ def add_volume_mounts(node):
kind_provider = "KIND_EXPERIMENTAL_PROVIDER=podman"

# create cluster
image_flag = ''
if kind_node_version != None:
image_flag = ""
if kind_node_version is not None:
image_flag = f"--image kindest/node:{kind_node_version}"

Check warning on line 180 in reana/reana_dev/cluster.py

View check run for this annotation

Codecov / codecov/patch

reana/reana_dev/cluster.py#L178-L180

Added lines #L178 - L180 were not covered by tests

cluster_create = "cat <<EOF | {kind_provider} kind create cluster {image_flag} --config=-\n{cluster_config}\nEOF".format(

Check warning on line 182 in reana/reana_dev/cluster.py

View check run for this annotation

Codecov / codecov/patch

reana/reana_dev/cluster.py#L182

Added line #L182 was not covered by tests
Expand Down

0 comments on commit 1086dca

Please sign in to comment.