reformat code
This commit is contained in:
@@ -86,7 +86,8 @@ def main():
|
||||
|
||||
# if not root...kick out
|
||||
if not os.geteuid() == 0:
|
||||
print("\nNon-privileged users cant use WordOps. Switch to root or invoke sudo.\n")
|
||||
print("\nNon-privileged users cant use WordOps. "
|
||||
"Switch to root or invoke sudo.\n")
|
||||
app.close(1)
|
||||
|
||||
# Setup the application
|
||||
@@ -130,5 +131,6 @@ def get_test_app(**kw):
|
||||
app = WOApp(**kw)
|
||||
return app
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""Stack Plugin for WordOps"""
|
||||
|
||||
from cement.core.controller import CementBaseController, expose
|
||||
from cement.core import handler, hook
|
||||
from cement.core import handler
|
||||
from wo.cli.plugins.site_functions import *
|
||||
from wo.core.variables import WOVariables
|
||||
from wo.core.aptget import WOAptGet
|
||||
@@ -20,7 +20,6 @@ from wo.core.variables import WOVariables
|
||||
import random
|
||||
import string
|
||||
import configparser
|
||||
import time
|
||||
import shutil
|
||||
import os
|
||||
import pwd
|
||||
|
||||
@@ -100,8 +100,8 @@ class WOStackMigrateController(CementBaseController):
|
||||
Log.error(
|
||||
self, "Remote MySQL server in use, skipping local install")
|
||||
|
||||
if WOShellExec.cmd_exec(self, "mysqladmin ping") and (not
|
||||
WOAptGet.is_installed(self, 'mariadb-server')):
|
||||
if (WOShellExec.cmd_exec(self, "mysqladmin ping") and
|
||||
(not WOAptGet.is_installed(self, 'mariadb-server'))):
|
||||
|
||||
Log.info(self, "If your database size is big, "
|
||||
"migration may take some time.")
|
||||
|
||||
Reference in New Issue
Block a user