[CI] Format code

This commit is contained in:
yunohost-bot 2021-05-24 15:08:57 +00:00
parent 6b4a787871
commit a8b70bea71
2 changed files with 3 additions and 5 deletions

View file

@ -48,7 +48,7 @@ class MyMigration(Migration):
"label": "SFTP", "label": "SFTP",
"showTile": "FALSE", "showTile": "FALSE",
"isProtected": "TRUE", "isProtected": "TRUE",
} },
) )
if "ssh.main" not in existing_perms: if "ssh.main" not in existing_perms:
@ -63,7 +63,7 @@ class MyMigration(Migration):
"label": "SSH", "label": "SSH",
"showTile": "FALSE", "showTile": "FALSE",
"isProtected": "TRUE", "isProtected": "TRUE",
} },
) )
# Add a bash terminal to each users # Add a bash terminal to each users

View file

@ -94,9 +94,7 @@ def tools_adminpw(new_password, check_strength=True):
try: try:
ldap.update( ldap.update(
"cn=admin", "cn=admin",
{ {"userPassword": [new_hash]},
"userPassword": [new_hash]
},
) )
except Exception as e: except Exception as e:
logger.error("unable to change admin password : %s" % e) logger.error("unable to change admin password : %s" % e)