[BFN] Fix vulnerability in eeprom.py (#5333)
Due to https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation, yaml.load(input) is deprecated. Added a specifying parameter to fix this issue. Signed-off-by: Petro Bratash <petrox.bratash@intel.com>
This commit is contained in:
parent
41dcdc6f49
commit
12f864a92e
@ -82,7 +82,7 @@ class board(eeprom_tlvinfo.TlvInfoDecoder):
|
|||||||
def __init__(self, name, path, cpld_root, ro):
|
def __init__(self, name, path, cpld_root, ro):
|
||||||
|
|
||||||
with open(os.path.dirname(__file__) + "/logging.conf", 'r') as f:
|
with open(os.path.dirname(__file__) + "/logging.conf", 'r') as f:
|
||||||
config_dict = yaml.load(f)
|
config_dict = yaml.load(f, yaml.SafeLoader)
|
||||||
logging.config.dictConfig(config_dict)
|
logging.config.dictConfig(config_dict)
|
||||||
|
|
||||||
if not os.path.exists(os.path.dirname(EEPROM_SYMLINK)):
|
if not os.path.exists(os.path.dirname(EEPROM_SYMLINK)):
|
||||||
|
Loading…
Reference in New Issue
Block a user