Skip to content

Commit

Permalink
Merge pull request #16458 from basepi/pkgordereddict
Browse files Browse the repository at this point in the history
Make OrderedDict private (_OrderedDict) in pkg state
  • Loading branch information
Nicole Thomas committed Oct 8, 2014
2 parents 57f2c4a + 3484aa4 commit 0ab7e3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions salt/states/pkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
import salt.utils
from salt.output import nested
from salt.utils import namespaced_function as _namespaced_function
from salt.utils.odict import OrderedDict
from salt.utils.odict import OrderedDict as _OrderedDict
from salt._compat import string_types
from salt.exceptions import (
CommandExecutionError, MinionError, SaltInvocationError
Expand Down Expand Up @@ -140,7 +140,7 @@ def _find_install_targets(name=None,
# Get the ignore_types list if any from the pkg_verify argument
if type(pkg_verify) is list and any(x.get('ignore_types') is not None
for x in pkg_verify
if type(x) is OrderedDict
if type(x) is _OrderedDict
and 'ignore_types' in x):
ignore_types = next(x.get('ignore_types')
for x in pkg_verify
Expand Down Expand Up @@ -974,7 +974,7 @@ def installed(
# Get the ignore_types list if any from the pkg_verify argument
if type(pkg_verify) is list and any(x.get('ignore_types') is not None
for x in pkg_verify
if type(x) is OrderedDict
if type(x) is _OrderedDict
and 'ignore_types' in x):
ignore_types = next(x.get('ignore_types')
for x in pkg_verify
Expand Down

0 comments on commit 0ab7e3d

Please sign in to comment.