Remove uneeded import
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
# """WordOps site controller."""
|
# """WordOps site controller."""
|
||||||
from cement.core.controller import CementBaseController, expose
|
from cement.core.controller import CementBaseController, expose
|
||||||
from cement.core import handler, hook
|
from cement.core import handler, hook
|
||||||
from wo.core.cron import WOCron
|
|
||||||
from wo.core.sslutils import SSL
|
from wo.core.sslutils import SSL
|
||||||
from wo.core.variables import WOVariables
|
from wo.core.variables import WOVariables
|
||||||
from wo.core.shellexec import WOShellExec
|
from wo.core.shellexec import WOShellExec
|
||||||
@@ -1219,7 +1218,6 @@ class WOSiteUpdateController(CementBaseController):
|
|||||||
if pargs.dns:
|
if pargs.dns:
|
||||||
data['letsencrypt'] = True
|
data['letsencrypt'] = True
|
||||||
letsencrypt = True
|
letsencrypt = True
|
||||||
pargs.letsencrypt == 'wildcard'
|
|
||||||
else:
|
else:
|
||||||
data['letsencrypt'] = True
|
data['letsencrypt'] = True
|
||||||
letsencrypt = True
|
letsencrypt = True
|
||||||
@@ -1239,10 +1237,8 @@ class WOSiteUpdateController(CementBaseController):
|
|||||||
if pargs.hsts:
|
if pargs.hsts:
|
||||||
if pargs.hsts == "on":
|
if pargs.hsts == "on":
|
||||||
data['hsts'] = True
|
data['hsts'] = True
|
||||||
hsts = True
|
|
||||||
elif pargs.hsts == "off":
|
elif pargs.hsts == "off":
|
||||||
data['hsts'] = False
|
data['hsts'] = False
|
||||||
hsts = False
|
|
||||||
|
|
||||||
if not data:
|
if not data:
|
||||||
Log.error(self, "Cannot update {0}, Invalid Options"
|
Log.error(self, "Cannot update {0}, Invalid Options"
|
||||||
|
|||||||
@@ -5,8 +5,7 @@ from sqlalchemy.ext.declarative import declarative_base
|
|||||||
from wo.core.logging import Log
|
from wo.core.logging import Log
|
||||||
from wo.core.database import db_session
|
from wo.core.database import db_session
|
||||||
from wo.cli.plugins.models import SiteDB
|
from wo.cli.plugins.models import SiteDB
|
||||||
import sys
|
|
||||||
import glob
|
|
||||||
|
|
||||||
|
|
||||||
def addNewSite(self, site, stype, cache, path,
|
def addNewSite(self, site, stype, cache, path,
|
||||||
|
|||||||
@@ -5,9 +5,7 @@ from cement.core.controller import CementBaseController, expose
|
|||||||
|
|
||||||
import codecs
|
import codecs
|
||||||
import configparser
|
import configparser
|
||||||
import grp
|
|
||||||
import os
|
import os
|
||||||
import platform
|
|
||||||
import pwd
|
import pwd
|
||||||
import random
|
import random
|
||||||
import shutil
|
import shutil
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ from wo.core.variables import WOVariables
|
|||||||
from wo.core.aptget import WOAptGet
|
from wo.core.aptget import WOAptGet
|
||||||
from wo.core.shellexec import WOShellExec
|
from wo.core.shellexec import WOShellExec
|
||||||
from wo.core.apt_repo import WORepo
|
from wo.core.apt_repo import WORepo
|
||||||
from wo.core.services import WOService
|
|
||||||
import configparser
|
import configparser
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ from wo.core.fileutils import WOFileUtils
|
|||||||
from wo.core.shellexec import WOShellExec
|
from wo.core.shellexec import WOShellExec
|
||||||
from wo.core.extract import WOExtract
|
from wo.core.extract import WOExtract
|
||||||
from wo.core.download import WODownload
|
from wo.core.download import WODownload
|
||||||
|
from wo.cli.plugins.stack import WOStackController
|
||||||
import configparser
|
import configparser
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
"""WordOps Swap Creation"""
|
"""WordOps Swap Creation"""
|
||||||
from wo.core.variables import WOVariables
|
|
||||||
from wo.core.shellexec import WOShellExec
|
from wo.core.shellexec import WOShellExec
|
||||||
from wo.core.fileutils import WOFileUtils
|
from wo.core.fileutils import WOFileUtils
|
||||||
from wo.core.aptget import WOAptGet
|
from wo.core.aptget import WOAptGet
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
"""WordOps package installation using apt-get module."""
|
"""WordOps package installation using apt-get module."""
|
||||||
import apt
|
import apt
|
||||||
import apt_pkg
|
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
import subprocess
|
||||||
from wo.core.logging import Log
|
from wo.core.logging import Log
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
from wo.core.shellexec import WOShellExec
|
from wo.core.shellexec import WOShellExec
|
||||||
from wo.core.variables import WOVariables
|
from wo.core.variables import WOVariables
|
||||||
import os
|
|
||||||
|
|
||||||
|
|
||||||
def check_fqdn(self, wo_host):
|
def check_fqdn(self, wo_host):
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
"""WordOps file utils core classes."""
|
"""WordOps file utils core classes."""
|
||||||
import shutil
|
import shutil
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import glob
|
|
||||||
import shutil
|
|
||||||
import pwd
|
import pwd
|
||||||
import fileinput
|
import fileinput
|
||||||
from wo.core.logging import Log
|
from wo.core.logging import Log
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
"""WordOps MySQL core classes."""
|
"""WordOps MySQL core classes."""
|
||||||
import pymysql
|
import pymysql
|
||||||
from pymysql import connections, DatabaseError, Error
|
from pymysql import connections, DatabaseError, Error
|
||||||
import configparser
|
|
||||||
from os.path import expanduser
|
from os.path import expanduser
|
||||||
import sys
|
|
||||||
import os
|
import os
|
||||||
from wo.core.logging import Log
|
from wo.core.logging import Log
|
||||||
from wo.core.variables import WOVariables
|
from wo.core.variables import WOVariables
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
"""WordOps Service Manager"""
|
"""WordOps Service Manager"""
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
import subprocess
|
import subprocess
|
||||||
from subprocess import Popen
|
from subprocess import Popen
|
||||||
from wo.core.logging import Log
|
from wo.core.logging import Log
|
||||||
import pystache
|
|
||||||
|
|
||||||
|
|
||||||
class WOService():
|
class WOService():
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
"""WordOps Shell Functions"""
|
"""WordOps Shell Functions"""
|
||||||
from wo.core.logging import Log
|
from wo.core.logging import Log
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user