mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 08:35:21 +00:00
Fix lint issues on salt
This commit is contained in:
parent
9eab9f4aef
commit
0372718831
@ -154,7 +154,8 @@ disable=R,
|
|||||||
E8266,
|
E8266,
|
||||||
E8402,
|
E8402,
|
||||||
E8731,
|
E8731,
|
||||||
3rd-party-local-module-not-gated
|
3rd-party-local-module-not-gated,
|
||||||
|
pep8-reserved-keywords
|
||||||
|
|
||||||
# Disabled:
|
# Disabled:
|
||||||
# R* [refactoring suggestions & reports]
|
# R* [refactoring suggestions & reports]
|
||||||
|
@ -139,7 +139,7 @@ import salt.config as config
|
|||||||
from salt.ext import six
|
from salt.ext import six
|
||||||
try:
|
try:
|
||||||
# Attempt to import pyVmomi libs
|
# Attempt to import pyVmomi libs
|
||||||
from pyVmomi import vim
|
from pyVmomi import vim # pylint: disable=no-name-in-module
|
||||||
HAS_PYVMOMI = True
|
HAS_PYVMOMI = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
HAS_PYVMOMI = False
|
HAS_PYVMOMI = False
|
||||||
|
@ -181,7 +181,7 @@ def _create_gpg(user=None, gnupghome=None):
|
|||||||
gnupghome = _get_user_gnupghome(user)
|
gnupghome = _get_user_gnupghome(user)
|
||||||
|
|
||||||
if GPG_1_3_1:
|
if GPG_1_3_1:
|
||||||
gpg = gnupg.GPG(homedir=gnupghome)
|
gpg = gnupg.GPG(homedir=gnupghome) # pylint: disable=unexpected-keyword-arg
|
||||||
else:
|
else:
|
||||||
gpg = gnupg.GPG(gnupghome=gnupghome)
|
gpg = gnupg.GPG(gnupghome=gnupghome)
|
||||||
|
|
||||||
|
@ -1082,7 +1082,7 @@ def lowdata_fmt():
|
|||||||
# headers for form encoded data (including charset or something similar)
|
# headers for form encoded data (including charset or something similar)
|
||||||
if data and isinstance(data, collections.Mapping):
|
if data and isinstance(data, collections.Mapping):
|
||||||
# Make the 'arg' param a list if not already
|
# Make the 'arg' param a list if not already
|
||||||
if 'arg' in data and not isinstance(data['arg'], list):
|
if 'arg' in data and not isinstance(data['arg'], list): # pylint: disable=unsupported-membership-test
|
||||||
data['arg'] = [data['arg']]
|
data['arg'] = [data['arg']]
|
||||||
|
|
||||||
# Finally, make a Low State and put it in request
|
# Finally, make a Low State and put it in request
|
||||||
|
Loading…
Reference in New Issue
Block a user