mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix some lint
This commit is contained in:
parent
1247598f28
commit
c55b7b4343
3 changed files with 4 additions and 4 deletions
|
@ -559,7 +559,7 @@ def set_firewall_settings(profile, inbound=None, outbound=None, store='local'):
|
|||
|
||||
|
||||
def set_logging_settings(profile, setting, value, store='local'):
|
||||
'''
|
||||
r'''
|
||||
Configure logging settings for the Windows firewall.
|
||||
|
||||
.. versionadded:: 2018.3.4
|
||||
|
|
|
@ -137,7 +137,7 @@ except ImportError:
|
|||
|
||||
|
||||
class _policy_info(object):
|
||||
'''
|
||||
r'''
|
||||
Policy Helper Class
|
||||
===================
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
'''
|
||||
r'''
|
||||
A salt util for modifying firewall settings.
|
||||
|
||||
.. versionadded:: 2018.3.4
|
||||
|
@ -195,7 +195,7 @@ def get_settings(profile, section, store='local'):
|
|||
ret = {}
|
||||
# Skip the first 2 lines. Add everything else to a dictionary
|
||||
for line in results[3:]:
|
||||
ret.update(dict(map(None, *[iter(re.split(r"\s{2,}", line))]*2)))
|
||||
ret.update(dict(map(None, *[iter(re.split(r"\s{2,}", line))]*2))) # pylint: disable=incompatible-py3-code
|
||||
|
||||
# Remove spaces from the values so that `Not Configured` is detected
|
||||
# correctly
|
||||
|
|
Loading…
Add table
Reference in a new issue