mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
pkg state: fix pylint W0604
************* Module salt.states.pkg W0604: 48,4: Using the global statement at the module level
This commit is contained in:
parent
4ebbc336c5
commit
5e72a30af2
@ -45,7 +45,6 @@ if salt.utils.is_windows():
|
||||
from salt.modules.win_pkg import _get_package_info
|
||||
from salt.modules.win_pkg import _get_latest_pkg_version
|
||||
from salt.modules.win_pkg import _reverse_cmp_pkg_versions
|
||||
global _get_package_info, _get_latest_pkg_version, _reverse_cmp_pkg_versions
|
||||
_get_package_info = namespaced_function(_get_package_info, globals())
|
||||
_get_latest_pkg_version = namespaced_function(_get_latest_pkg_version, globals())
|
||||
_reverse_cmp_pkg_versions = namespaced_function(_reverse_cmp_pkg_versions, globals())
|
||||
|
Loading…
Reference in New Issue
Block a user