Skip to content

Remove redundant execution in salt-call#49552

Merged
rallytime merged 3 commits intosaltstack:fluorinefrom
terminalmage:fix-double-exec
Sep 11, 2018
Merged

Remove redundant execution in salt-call#49552
rallytime merged 3 commits intosaltstack:fluorinefrom
terminalmage:fix-double-exec

Conversation

@terminalmage
Copy link
Copy Markdown
Contributor

Pull #48344 added logic to salt-call which runs the desired function using all
of the executors, or just the direct_call one if none are configured.

However, the previous code which ran the function was not removed, which
results in the function being run twice.

This removes the (now) redundant function call.

Pull saltstack#48344 added logic to salt-call which runs the desired function using all
of the executors, or just the direct_call one if none are configured.

However, the previous code which ran the function was not removed, which
results in the function being run twice.

This removes the (now) redundant function call.
@terminalmage terminalmage requested a review from a team as a code owner September 6, 2018 23:45
@ghost ghost self-requested a review September 6, 2018 23:45
Copy link
Copy Markdown
Contributor

@DmitryKuzmenko DmitryKuzmenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@terminalmage
Copy link
Copy Markdown
Contributor Author

Before this is merged, I will add an integration test. This seems like something important 😄

This was skipped long ago and it really shouldn't need to be anymore.
This also rewrites the test to be a bit more robust.
@terminalmage
Copy link
Copy Markdown
Contributor Author

There was already a test that would have protected us from this regression but it was skipped for a long time now for reasons that are likely no longer valid. So I have removed the skip and rewritten the test to be a bit more robust.

@rallytime
Copy link
Copy Markdown
Contributor

@terminalmage Can you fix the lint errors?

@rallytime rallytime merged commit 4f59a67 into saltstack:fluorine Sep 11, 2018
@terminalmage terminalmage deleted the fix-double-exec branch September 11, 2018 20:12
gtmanfred added a commit to gtmanfred/salt that referenced this pull request Oct 1, 2018
These numbers were wrong because of the bug fixed in saltstack#49552

Fixes saltstack/salt-jenkins#1135
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants