Merge pull request #1234 from YunoHost/ci-format-dev

[CI] Format code
This commit is contained in:
Alexandre Aubin 2021-05-24 17:31:40 +02:00 committed by GitHub
commit aac2d089d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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)