mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[CI] Format code
This commit is contained in:
parent
6b4a787871
commit
a8b70bea71
2 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue