mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] pep8 on tools.py
This commit is contained in:
parent
66524213cd
commit
40ea2f9477
1 changed files with 14 additions and 14 deletions
|
@ -114,6 +114,7 @@ def tools_ldapinit():
|
|||
logger.success(m18n.n('ldap_initialized'))
|
||||
return auth
|
||||
|
||||
|
||||
def tools_adminpw(auth, new_password):
|
||||
"""
|
||||
Change admin password
|
||||
|
@ -328,7 +329,6 @@ def tools_postinstall(domain, password, ignore_dyndns=False):
|
|||
raise MoulinetteError(errno.EPERM,
|
||||
m18n.n('ssowat_persistent_conf_write_error', error=e.strerror))
|
||||
|
||||
|
||||
os.system('chmod 644 /etc/ssowat/conf.json.persistent')
|
||||
|
||||
# Create SSL CA
|
||||
|
@ -526,7 +526,7 @@ def tools_diagnosis(auth, private=False):
|
|||
Return global info about current yunohost instance to help debugging
|
||||
|
||||
"""
|
||||
diagnosis = OrderedDict();
|
||||
diagnosis = OrderedDict()
|
||||
|
||||
# Debian release
|
||||
try:
|
||||
|
@ -567,7 +567,6 @@ def tools_diagnosis(auth, private=False):
|
|||
disks[disk]['avail']
|
||||
)
|
||||
|
||||
|
||||
try:
|
||||
system = monitor_system(units=['cpu', 'memory'], human_readable=True)
|
||||
except MoulinetteError as e:
|
||||
|
@ -867,6 +866,7 @@ def _get_migrations_list():
|
|||
|
||||
|
||||
class Migration(object):
|
||||
|
||||
def migrate(self):
|
||||
self.forward()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue