Browse Source

Update migracao_usuarios.py

pull/3459/head
Abdul muhaimin 3 years ago
committed by GitHub
parent
commit
faff4e27a8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      sapl/legacy/migracao_usuarios.py

2
sapl/legacy/migracao_usuarios.py

@ -71,7 +71,7 @@ def migrar_usuarios(dir_repo):
ARQUIVO_USUARIOS = Path(dir_repo).child('usuarios.yaml')
with open(ARQUIVO_USUARIOS, 'r') as f:
usuarios = yaml.load(f, yaml.Loader)
usuarios = yaml.load(f, yaml.SafeLoader)
# conferimos de que só há um nome de usuário
assert all(nome == dados['name'] for nome, dados in usuarios.items())
usuarios = [

Loading…
Cancel
Save