mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
remove unused imports, Fix #1189
This commit is contained in:
parent
468df71441
commit
328052a499
@ -743,7 +743,6 @@ class SaltCall(object):
|
||||
salt.log.setup_console_logger(
|
||||
self.opts['log_level']
|
||||
)
|
||||
import logging
|
||||
caller = salt.cli.caller.Caller(self.opts)
|
||||
caller.run()
|
||||
|
||||
|
@ -33,7 +33,6 @@ import re
|
||||
import sys
|
||||
import glob
|
||||
import time
|
||||
import datetime
|
||||
import getpass
|
||||
|
||||
# Import zmq modules
|
||||
|
@ -11,11 +11,9 @@ import hmac
|
||||
import hashlib
|
||||
import logging
|
||||
import tempfile
|
||||
import base64
|
||||
|
||||
# Import Cryptography libs
|
||||
from Crypto.Cipher import AES
|
||||
from Crypto.Hash import MD5
|
||||
from M2Crypto import RSA
|
||||
|
||||
# Import zeromq libs
|
||||
|
@ -11,7 +11,6 @@ import logging
|
||||
import hashlib
|
||||
import os
|
||||
import shutil
|
||||
import stat
|
||||
import string
|
||||
import subprocess
|
||||
try:
|
||||
|
@ -18,7 +18,7 @@ import traceback
|
||||
import zmq
|
||||
|
||||
# Import salt libs
|
||||
from salt.exceptions import AuthenticationError, MinionError, \
|
||||
from salt.exceptions import AuthenticationError, \
|
||||
CommandExecutionError, CommandNotFoundError, SaltInvocationError, \
|
||||
SaltClientError
|
||||
import salt.client
|
||||
|
@ -13,7 +13,6 @@ import grp
|
||||
import pwd
|
||||
import time
|
||||
import hashlib
|
||||
import sys
|
||||
import stat
|
||||
import fnmatch
|
||||
|
||||
|
@ -3,8 +3,6 @@ Top level package command wrapper, used to translate the os detected by the
|
||||
grains to the correct service manager
|
||||
'''
|
||||
|
||||
import os
|
||||
|
||||
|
||||
def __virtual__():
|
||||
'''
|
||||
|
@ -3,7 +3,6 @@ Salt module to manage RAID arrays with mdadm
|
||||
'''
|
||||
|
||||
import logging
|
||||
import os
|
||||
|
||||
|
||||
# Set up logger
|
||||
|
@ -5,7 +5,6 @@ Module for gathering and managing network information
|
||||
from string import ascii_letters, digits
|
||||
import socket
|
||||
import re
|
||||
import salt.utils
|
||||
|
||||
__outputter__ = {
|
||||
'dig': 'txt',
|
||||
|
@ -3,9 +3,8 @@ The networking module for RHEL/Fedora based distros
|
||||
'''
|
||||
# Import python libs
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
from os.path import exists, dirname, join
|
||||
from os.path import exists, join
|
||||
|
||||
# import third party libs
|
||||
import jinja2
|
||||
|
@ -4,8 +4,6 @@ service command (so it is compatible with upstart systems) and the chkconfig
|
||||
command.
|
||||
'''
|
||||
|
||||
import os
|
||||
|
||||
|
||||
def __virtual__():
|
||||
'''
|
||||
|
@ -62,7 +62,6 @@ verbose : True
|
||||
# Import Python Libs
|
||||
import urllib2
|
||||
import json
|
||||
import socket
|
||||
import os
|
||||
|
||||
# Import Salt libs
|
||||
|
@ -5,7 +5,6 @@ Control the state system on the minion
|
||||
# Import Python libs
|
||||
import copy
|
||||
import os
|
||||
import sys
|
||||
|
||||
# Import Salt libs
|
||||
import salt.state
|
||||
|
@ -12,8 +12,6 @@ import hashlib
|
||||
import logging
|
||||
|
||||
try:
|
||||
import win32api
|
||||
import win32con
|
||||
import win32security
|
||||
import ntsecuritycon as con
|
||||
has_windows_modules = True
|
||||
|
@ -4,8 +4,6 @@ Module for gathering and managing network information
|
||||
|
||||
from string import ascii_letters, digits
|
||||
import socket
|
||||
import re
|
||||
import salt.utils
|
||||
|
||||
__outputter__ = {
|
||||
'dig': 'txt',
|
||||
|
@ -2,7 +2,6 @@
|
||||
Windows Service module.
|
||||
'''
|
||||
|
||||
import os
|
||||
import time
|
||||
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
Manage the shadow file
|
||||
'''
|
||||
|
||||
import os
|
||||
|
||||
def __virtual__():
|
||||
'''
|
||||
|
@ -4,7 +4,6 @@ Support for YUM
|
||||
import logging
|
||||
from collections import namedtuple
|
||||
|
||||
from salt.exceptions import PkgParseError
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
@ -10,7 +10,6 @@ import json
|
||||
import os
|
||||
|
||||
# Import salt libs
|
||||
from salt.utils.jinja import get_template
|
||||
from salt.exceptions import SaltRenderError
|
||||
import salt.utils.templates
|
||||
|
||||
|
@ -6,7 +6,6 @@ data
|
||||
'''
|
||||
|
||||
# Import python libs
|
||||
import imp
|
||||
import os
|
||||
|
||||
# Import Salt libs
|
||||
|
@ -11,7 +11,6 @@ import logging
|
||||
import warnings
|
||||
|
||||
# Import Salt libs
|
||||
from salt.utils.jinja import get_template
|
||||
from salt.utils.yaml import CustomLoader, load
|
||||
from salt.exceptions import SaltRenderError
|
||||
import salt.utils.templates
|
||||
|
@ -9,7 +9,6 @@ high data format for salt states.
|
||||
import os
|
||||
|
||||
# Import Third Party libs
|
||||
from mako.template import Template
|
||||
|
||||
from salt.utils.yaml import CustomLoader, load
|
||||
from salt.exceptions import SaltRenderError
|
||||
|
@ -33,7 +33,6 @@ import salt.fileclient
|
||||
from salt.template import (
|
||||
compile_template,
|
||||
compile_template_str,
|
||||
template_shebang,
|
||||
)
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
@ -42,7 +42,6 @@ syslog if there is no disk space:
|
||||
|
||||
import grp
|
||||
import os
|
||||
import pwd
|
||||
from salt.exceptions import CommandExecutionError
|
||||
|
||||
def wait(name,
|
||||
|
@ -76,16 +76,13 @@ something like this:
|
||||
- source: salt://code/flask
|
||||
'''
|
||||
# Import Python libs
|
||||
import codecs
|
||||
from contextlib import nested # For < 2.7 compat
|
||||
import os
|
||||
import shutil
|
||||
import difflib
|
||||
import hashlib
|
||||
import imp
|
||||
import logging
|
||||
import tempfile
|
||||
import traceback
|
||||
import urlparse
|
||||
import copy
|
||||
|
||||
|
@ -2,7 +2,6 @@ from winservice import Service, instart
|
||||
import win32serviceutil
|
||||
import win32service
|
||||
import winerror
|
||||
import os
|
||||
import salt
|
||||
import sys
|
||||
|
||||
|
@ -4,18 +4,10 @@ Template render systems
|
||||
# Import python libs
|
||||
import codecs
|
||||
import os
|
||||
import shutil
|
||||
import difflib
|
||||
import hashlib
|
||||
import imp
|
||||
import logging
|
||||
import tempfile
|
||||
import traceback
|
||||
try:
|
||||
import urlparse
|
||||
except:
|
||||
import urllib.parse as urlparse
|
||||
import copy
|
||||
|
||||
# Import salt libs
|
||||
import salt.utils
|
||||
|
Loading…
Reference in New Issue
Block a user