diff --git a/salt/modules/pkg_resource.py b/salt/modules/pkg_resource.py index f5a02556b9..de10a1c5ed 100644 --- a/salt/modules/pkg_resource.py +++ b/salt/modules/pkg_resource.py @@ -27,7 +27,8 @@ def _parse_pkg_meta(path): ''' def parse_rpm(path): try: - import collections # needed by _parse_pkginfo, DO NOT REMOVE + global __SUFFIX_NOT_NEEDED # needed by _parse_pkginfo, DO NOT REMOVE + from salt.modules.yumpkg5 import __SUFFIX_NOT_NEEDED from salt.modules.yumpkg5 import __QUERYFORMAT, _parse_pkginfo from salt.utils import namespaced_function as _namespaced_function _parse_pkginfo = _namespaced_function(_parse_pkginfo, globals())