From 0ab1e393fc6a43de6ddd7f3e8363e9f5e424791b Mon Sep 17 00:00:00 2001 From: Mehran Kholdi Date: Fri, 29 May 2020 19:13:47 +0430 Subject: [PATCH] Fix typo --- orchestrator/k8s.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orchestrator/k8s.py b/orchestrator/k8s.py index 431e0d8..4906106 100644 --- a/orchestrator/k8s.py +++ b/orchestrator/k8s.py @@ -16,7 +16,7 @@ def volume_to_node(volume_id): node_name = pv.spec.nodeAffinity.required.nodeSelectorTerms[0].matchExpressions[0][ "values" ][0] - expected_node_affainity = yaml.safe_load( + expected_node_affinity = yaml.safe_load( f""" required: nodeSelectorTerms: @@ -27,7 +27,7 @@ required: - {node_name} """ ) - assert pv.spec.nodeAffinity == expected_node_affainity + assert pv.spec.nodeAffinity == expected_node_affinity return node_name