[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",
"showTile": "FALSE",
"isProtected": "TRUE",
}
},
)
if "ssh.main" not in existing_perms:
@ -63,7 +63,7 @@ class MyMigration(Migration):
"label": "SSH",
"showTile": "FALSE",
"isProtected": "TRUE",
}
},
)
# Add a bash terminal to each users

View file

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