Apply Pylint improvement

This commit is contained in:
VirtuBox
2022-09-25 13:32:38 +02:00
parent 0e7a8dd952
commit b91a92b52d

View File

@@ -73,7 +73,7 @@ class WOStackMigrateController(CementBaseController):
@expose(hide=True) @expose(hide=True)
def default(self): def default(self):
pargs = self.app.pargs pargs = self.app.pargs
if ((not pargs.mariadb)): if not pargs.mariadb:
self.app.args.print_help() self.app.args.print_help()
if pargs.mariadb: if pargs.mariadb:
if WOVar.wo_distro == 'raspbian': if WOVar.wo_distro == 'raspbian':
@@ -82,7 +82,7 @@ class WOStackMigrateController(CementBaseController):
Log.error( Log.error(
self, "Remote MySQL server in use, skipping local install") self, "Remote MySQL server in use, skipping local install")
if (WOShellExec.cmd_exec(self, "mysqladmin ping")): if WOShellExec.cmd_exec(self, "mysqladmin ping"):
Log.info(self, "If your database size is big, " Log.info(self, "If your database size is big, "
"migration may take some time.") "migration may take some time.")