You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
when using 'prereq' in orchestration pre-requiring state does not run #49753
P4Priority 4bugbroken, incorrect, or confusing behaviorfixed-pls-verifyfix is linked, bug author to confirm fixseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
When using 'prepreq' in orchestration, I can see that the pre-required state first runs with test=True and then runs in real, but the pre-requiring state did not run at all.
I think this is probably related to #40208
I made the following change to test
--- a/salt/states/file.py
+++ b/salt/states/file.py
@@ -2366,7 +2366,8 @@ def managed(name,
else:
ret['result'] = True
ret['comment'] = u'The file {0} is in the correct state'.format(name)
-
+ if ret['pchanges']:
+ ret['changes'] = ret['pchanges']
return ret
# If the source is a list then find which file exists
we were just actually talking internally about the need for this and I believe we decided it needs to be removed as it wasn't fully implemented, but i know @terminalmage was the one that was going to work on this so he can give more insight.
P4Priority 4bugbroken, incorrect, or confusing behaviorfixed-pls-verifyfix is linked, bug author to confirm fixseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Activity
angeloudy commentedon Sep 24, 2018
I think this is probably related to #40208
I made the following change to test
and then the
prereqworked as expected.Ch3LL commentedon Sep 24, 2018
looks like you have a grasp of the change. would you be willing to submit that as a PR?
angeloudy commentedon Sep 25, 2018
@Ch3LL that's just my work around. I don't understand why do we need
pachanges, what it's for?Ch3LL commentedon Sep 28, 2018
we were just actually talking internally about the need for this and I believe we decided it needs to be removed as it wasn't fully implemented, but i know @terminalmage was the one that was going to work on this so he can give more insight.
terminalmage commentedon Sep 28, 2018
This is the same root issue as #45895 and will be fixed later today. I'm wrapping up integration tests right now.
terminalmage commentedon Sep 29, 2018
See #49832