mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Pylint fix
This commit is contained in:
parent
dbdc12fe11
commit
d9d30cc855
@ -23,16 +23,12 @@ from salt.ext.six.moves import range # pylint: disable=redefined-builtin
|
||||
|
||||
# Import third party libs
|
||||
try:
|
||||
import salt.ext.six.moves.winreg
|
||||
import salt.ext.six.moves.winreg # pylint: disable=import-error
|
||||
import win32security
|
||||
import ntsecuritycon
|
||||
HAS_WINDOWS_MODULES = True
|
||||
except ImportError:
|
||||
try:
|
||||
import winreg as _winreg
|
||||
HAS_WINDOWS_MODULES = True
|
||||
except ImportError:
|
||||
HAS_WINDOWS_MODULES = False
|
||||
HAS_WINDOWS_MODULES = False
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
@ -19,6 +19,7 @@ import integration
|
||||
from salt.config import cloud_providers_config
|
||||
from salt.ext.six.moves import range # pylint: disable=redefined-builtin
|
||||
|
||||
|
||||
def __random_name(size=6):
|
||||
'''
|
||||
Generates a random cloud instance name
|
||||
|
Loading…
Reference in New Issue
Block a user