diff --git a/aptly/publisher/__init__.py b/aptly/publisher/__init__.py index 6b4984b..3b3aa41 100644 --- a/aptly/publisher/__init__.py +++ b/aptly/publisher/__init__.py @@ -13,7 +13,7 @@ def load_publish(publish): with open(publish, 'r') as publish_file: - return yaml.load(publish_file) + return yaml.safe_load(publish_file) class PublishManager(object): diff --git a/aptly/publisher/__main__.py b/aptly/publisher/__main__.py index cc5099e..8715142 100644 --- a/aptly/publisher/__main__.py +++ b/aptly/publisher/__main__.py @@ -20,7 +20,7 @@ def load_config(config): with open(config, 'r') as fh: - return yaml.load(fh) + return yaml.safe_load(fh) def get_latest_snapshot(snapshots, name):