Skip to content

Commit

Permalink
Fix yaml loading in tests (#2698) (#2702)
Browse files Browse the repository at this point in the history
Co-authored-by: Konstantinos Tsakalozos <kos.tsakalozos@canonical.com>
  • Loading branch information
neoaggelos and ktsakalozos authored Nov 3, 2021
1 parent ec4ff71 commit ddb4a29
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 @@ -79,7 +79,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(
Expand Down

0 comments on commit ddb4a29

Please sign in to comment.