Merge pull request #44571 from rallytime/bp-43822

Back-port #43822 to 2017.7
This commit is contained in:
Mike Place 2017-11-20 19:01:25 +00:00 committed by GitHub
commit 136b9e3bc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2016,7 +2016,11 @@ def check_state_result(running, recurse=False, highstate=None):
ret = True
for state_id, state_result in six.iteritems(running):
if not recurse and not isinstance(state_result, dict):
expected_type = dict
# The __extend__ state is a list
if "__extend__" == state_id:
expected_type = list
if not recurse and not isinstance(state_result, expected_type):
ret = False
if ret and isinstance(state_result, dict):
result = state_result.get('result', _empty)