Skip to content

Commit

Permalink
Fix helpers.py Black error
Browse files Browse the repository at this point in the history
Signed-off-by: Sagi Hirshfeld <[email protected]>
  • Loading branch information
sagihirshfeld committed Oct 15, 2024
1 parent 1692679 commit f426583
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions ocs_ci/helpers/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,9 +824,9 @@ def create_storage_class(
sc_data["metadata"]["namespace"] = config.ENV_DATA["cluster_namespace"]
for key in ["node-stage", "provisioner", "controller-expand"]:
sc_data["parameters"][f"csi.storage.k8s.io/{key}-secret-name"] = secret_name
sc_data["parameters"][f"csi.storage.k8s.io/{key}-secret-namespace"] = (
config.ENV_DATA["cluster_namespace"]
)
sc_data["parameters"][
f"csi.storage.k8s.io/{key}-secret-namespace"
] = config.ENV_DATA["cluster_namespace"]

if annotations:
sc_data["metadata"]["annotations"] = annotations
Expand Down Expand Up @@ -2989,12 +2989,12 @@ def collect_performance_stats(dir_name):

performance_stats["master_node_utilization"] = master_node_utilization_from_adm_top
performance_stats["worker_node_utilization"] = worker_node_utilization_from_adm_top
performance_stats["master_node_utilization_from_oc_describe"] = (
master_node_utilization_from_oc_describe
)
performance_stats["worker_node_utilization_from_oc_describe"] = (
worker_node_utilization_from_oc_describe
)
performance_stats[
"master_node_utilization_from_oc_describe"
] = master_node_utilization_from_oc_describe
performance_stats[
"worker_node_utilization_from_oc_describe"
] = worker_node_utilization_from_oc_describe

file_name = os.path.join(log_dir_path, "performance")
with open(file_name, "w") as outfile:
Expand Down Expand Up @@ -4957,9 +4957,9 @@ def configure_node_network_configuration_policy_on_all_worker_nodes():
node_network_configuration_policy["spec"]["nodeSelector"][
"kubernetes.io/hostname"
] = worker_node_name
node_network_configuration_policy["metadata"]["name"] = (
worker_network_configuration["node_network_configuration_policy_name"]
)
node_network_configuration_policy["metadata"][
"name"
] = worker_network_configuration["node_network_configuration_policy_name"]
node_network_configuration_policy["spec"]["desiredState"]["interfaces"][0][
"ipv4"
]["address"][0]["ip"] = worker_network_configuration[
Expand Down

0 comments on commit f426583

Please sign in to comment.