Skip to content

Commit

Permalink
Use safe_load for yaml to avoid compatibility issue with later pyyaml…
Browse files Browse the repository at this point in the history
… versions
  • Loading branch information
hkbakke committed Nov 7, 2023
1 parent 046493d commit 25f1714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zfssnap.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def __init__(self, config_file):
config_file = '/etc/zfssnap/zfssnap.yml'

with open(config_file) as f:
self.config = yaml.load(f)
self.config = yaml.safe_load(f)

self.global_defaults = self._get_global_defaults()

Expand Down

0 comments on commit 25f1714

Please sign in to comment.