X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fauth.py;h=dc3d386ff03599dd8fc53dc9deb884fec23708b7;hp=8bb479db2d070b68ec21c4c25cef8ff84680b68a;hb=45bd94c2a096f53a5692f438aa5148c3d42631fa;hpb=029405dc71e09d30e7660fa68f799737d017acbf;ds=inline diff --git a/osm_nbi/auth.py b/osm_nbi/auth.py index 8bb479d..dc3d386 100644 --- a/osm_nbi/auth.py +++ b/osm_nbi/auth.py @@ -214,7 +214,7 @@ class Authenticator: # Loading permissions to MongoDB if there is not any permission. if not records or (len(records) == 1 and records[0]["name"] == "admin"): with open(self.roles_to_operations_file, "r") as stream: - roles_to_operations_yaml = yaml.load(stream) + roles_to_operations_yaml = yaml.load(stream, Loader=yaml.Loader) role_names = [] for role_with_operations in roles_to_operations_yaml["roles"]: