diff --git a/prometheus_pgbouncer_exporter/config.py b/prometheus_pgbouncer_exporter/config.py index 00dd71f..89e6092 100644 --- a/prometheus_pgbouncer_exporter/config.py +++ b/prometheus_pgbouncer_exporter/config.py @@ -49,7 +49,7 @@ def env_var_multi_replacer(loader, node): # Read file try: stream = open(filepath, "r") - self.config = yaml.load(stream) + self.config = yaml.load(stream, Loader=yaml.FullLoader) # Handle an empty configuration file if not self.config: diff --git a/requirements.txt b/requirements.txt index fd84758..35b04af 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,4 @@ psycopg2==2.7.3.2 prometheus_client==0.0.21 python-json-logger==0.1.5 pycodestyle -PyYAML==5.1 +PyYAML==5.3.1 diff --git a/setup.py b/setup.py index cc11fd7..66a8b07 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ keywords = ['prometheus', 'pgbouncer'], classifiers = [], python_requires = ' >= 3', - install_requires = ['psycopg2 == 2.7.3.2', 'prometheus_client==0.0.21', 'python-json-logger==0.1.5', 'PyYAML==5.1'], + install_requires = ['psycopg2 == 2.7.3.2', 'prometheus_client==0.0.21', 'python-json-logger==0.1.5', 'PyYAML==5.3.1'], entry_points = { 'console_scripts': [ 'pgbouncer-exporter=prometheus_pgbouncer_exporter.cli:main',