Skip to content

Commit

Permalink
Fix yaml loading in tests (#2698)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsakalozos authored and neoaggelos committed Nov 1, 2021
1 parent e9fe183 commit 434e7a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def kubectl_get(target, timeout_insec=300):
"""
cmd = 'get -o yaml ' + target
output = kubectl(cmd, timeout_insec)
return yaml.load(output)
return yaml.safe_load(output)


def wait_for_pod_state(pod, namespace, desired_state, desired_reason=None, label=None, timeout_insec=600):
Expand Down

0 comments on commit 434e7a4

Please sign in to comment.