summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
061dc1d)
Change-Id: I9872174f0205568c2b62f1ea7bf2cc20586327be
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
path = "mon.yaml"
config_file = pkg_resources.resource_filename(__name__, path)
with open(config_file) as f:
path = "mon.yaml"
config_file = pkg_resources.resource_filename(__name__, path)
with open(config_file) as f:
- self.conf = yaml.load(f)
+ self.conf = yaml.safe_load(f)
def get(self, section, field=None):
if not field:
def get(self, section, field=None):
if not field: