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