-
Notifications
You must be signed in to change notification settings - Fork 133
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
[DEPRECATION WARNING]: The 'return_code' return key is deprecated. Please use 'rc' instead. #413
Comments
@erikgb Thanks for reporting this issue. Due to Ansible Core engine changes, we moved from @tima @gravesm @abikouo What do you think about this? Thanks. |
We have no way to know what fields of the return value are used, or even if the return value is used at all. This is a limitation of Ansible and there's not much we can do about this. As a general rule, we issue warnings for any breaking changes for a period of time before the breaking change is made. |
Thanks @gravesm, makes sense. The wording on the deprecation message can maybe be improved a little, to not confuse the user, but I understand that the collection cannot know if/how the return values are used. Closing issue. |
It's a legitimate complaint. If you can think of a better way to phrase this we'd happily accept a PR. |
Here is a suggestion, but it might need some adjustments since I am not native in English. 😅
I also found this feature idea, that could have mended this: ansible/ansible#49900. |
SUMMARY
It seems like this deprecation warning is emitted - even if all usage is migrated to
rc
.ISSUE TYPE
COMPONENT NAME
kubernetes.core.k8s_exec
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Debian-flavoured container image from based on official python image.
STEPS TO REPRODUCE
EXPECTED RESULTS
Task runs successfully, with no warnings.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: