This commit is contained in:
Gareth J. Greenaway 2017-10-31 08:57:38 -07:00
parent d2bfa95018
commit d9dcb84fe3
No known key found for this signature in database
GPG key ID: 10B62F8A7CAD7A41
2 changed files with 2 additions and 1 deletions

View file

@ -2236,7 +2236,7 @@ class State(object):
fun_stats = set()
for r_state, chunks in six.iteritems(reqs):
req_stats = set()
if r_state.startswith(u'prereq'):
if r_state == u'prereq':
run_dict = self.pre
else:
run_dict = running

View file

@ -844,6 +844,7 @@ class StateModuleTest(ModuleCase, SaltReturnAssertsMixin):
result = self.normalize_ret(ret)
self.assertEqual(expected_result_simple, result)
log.error('=== ret {} ==='.format(ret))
return
# same test, but not using lists in yaml syntax
# TODO: issue #8235, prereq ignored when not used in list syntax