Browse Source

Fixing a typo s/Cound/Could/g noticed with an error getting CSR's approved

Rhys Oxenham 6 years ago
parent
commit
e24c903fe8

+ 1 - 1
roles/lib_openshift/library/oc_csr_approve.py

@@ -166,7 +166,7 @@ def confirm_needed_requests_present(module, not_ready_nodes, csr_dict):
         missing_nodes = ', '.join(nodes_needed)
         result = {'failed': True,
                   'changed': False,
-                  'msg': "Cound not find csr for nodes: {}".format(missing_nodes),
+                  'msg': "Could not find csr for nodes: {}".format(missing_nodes),
                   'state': 'unknown'}
         module.fail_json(**result)
 

+ 1 - 1
roles/lib_openshift/test/test_oc_csr_approve.py

@@ -89,7 +89,7 @@ def test_confirm_needed_requests_present():
     with pytest.raises(Exception) as err:
         oc_csr_approve.confirm_needed_requests_present(
             module, not_ready_nodes, csr_dict)
-    assert 'Exception: Cound not find csr for nodes: host1' in str(err)
+    assert 'Exception: Could not find csr for nodes: host1' in str(err)
 
     not_ready_nodes = ['fedora1.openshift.io']
     # this should complete silently