Fix test_oneview_ethernet_network unit test.
Use yaml.safe_load since yaml.load without a loader is deprecated.
This commit is contained in:
parent
fb5f85d2c1
commit
98fdbf6a13
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ DEFAULT_BULK_ENET_TEMPLATE = [
|
||||||
{'name': 'TestNetwork_10', 'vlanId': 10},
|
{'name': 'TestNetwork_10', 'vlanId': 10},
|
||||||
]
|
]
|
||||||
|
|
||||||
DICT_PARAMS_WITH_CHANGES = yaml.load(YAML_PARAMS_WITH_CHANGES)["data"]
|
DICT_PARAMS_WITH_CHANGES = yaml.safe_load(YAML_PARAMS_WITH_CHANGES)["data"]
|
||||||
|
|
||||||
|
|
||||||
class EthernetNetworkModuleSpec(unittest.TestCase,
|
class EthernetNetworkModuleSpec(unittest.TestCase,
|
||||||
|
|
Loading…
Reference in a new issue