Fix lint issues on salt

This commit is contained in:
Pedro Algarvio 2019-04-02 00:25:29 +01:00
parent 9eab9f4aef
commit 0372718831
No known key found for this signature in database
GPG Key ID: BB36BF6584A298FF
4 changed files with 5 additions and 4 deletions

View File

@ -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]

View File

@ -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

View File

@ -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)

View File

@ -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