vdstatus: replace deprecated yaml.load() with yaml.safe_load() call
This commit is contained in:
parent
c3700821af
commit
9902696f1f
1 changed files with 1 additions and 1 deletions
2
vdstatus
2
vdstatus
|
@ -30,7 +30,7 @@ class PluginRunner:
|
||||||
self.conf = dict()
|
self.conf = dict()
|
||||||
self.conf.update(DEFAULTS)
|
self.conf.update(DEFAULTS)
|
||||||
with open(config_file) as config_data:
|
with open(config_file) as config_data:
|
||||||
self.conf.update(yaml.load(config_data))
|
self.conf.update(yaml.safe_load(config_data))
|
||||||
self.plugins_loaded = list()
|
self.plugins_loaded = list()
|
||||||
self.format_output = self.format_term
|
self.format_output = self.format_term
|
||||||
for plugin in self.conf['plugins']:
|
for plugin in self.conf['plugins']:
|
||||||
|
|
Loading…
Reference in a new issue