-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Salt-API has no Return-Code #47208
Comments
Can you include a versions report? |
Similar to #37043 |
@Ch3LL This is pretty much version independent, since it's more or less a design flaw in Salt-API. So this happens in 2016.x, 2017.x and 2018.x. |
Thanks for specifying the versions. appreciate it @brejoc Through the issue @mchugh19 pointed me too I found this PR: #41356 I know that does not resolve this particular issue but figured it might be useful to know for others related to this issue. I will keep this issue open while still linked to 37043 as its a specific use case and we can focus on fixing this as well. |
ping @saltstack/team-netapi any ideas here on a fix? |
as referenced in #41356 you can use full_return kwarg to access the retcode among other metadata of the job. this issue can be resolved. |
@mchugh19 it looks like wheel client also supports full_return. the example in the original issue is also covered, ie:
|
looks good. Is there any documentation regarding |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
I don't think that anything has changed here! |
Thank you for updating this issue. It is no longer marked as stale. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
not stale |
Thank you for updating this issue. It is no longer marked as stale. |
Closing this issue due to age and lack of activity. Please test this on version 3006.2 and create a new issue if the problem persists. The new issue template has more information and will allow us to track and reproduce the issue more effectively. Thanks! |
Description of Issue/Question
As discussed with @rallytime , I bring #36318 (comment) as a new issue to rise a discussion about how we can approach this.
"Salt-API does not have Return-Code": You cannot differentiate between a value "False" and Minion down producing "False".
Example:
This return when minion is running:
When I stop the minion I get:
How should I know that "false" mean here "minion down" and that it is not the value for the grain
ip_gw
?The text was updated successfully, but these errors were encountered: