-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
error in create_namespaced_job 'property' - object has no attribute 'swagger_types' #872
Comments
/cc |
thanks for the report! I looked at I pulled together a small example mimicking the k8s doc and it worked for me:
|
perhaps we could add some examples like ^ given job creation with the python client is painful ref #589 cc @scottilee |
@roycaihw Added it to my list of examples to add and clean up. You can close this if you want. |
/close |
@roycaihw: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
error in create_namespaced_job
'property' object has no attribute 'swagger_types'
I have traced this to an error in /kubernetes/client/api_client.py, sanitize_for_serialization, where the recursion calls this function to 'sanitize' a single entity of type Property. This falls through to the obj_dict comprehension, where it bombs as the object has no .swagger_type attibute.
I have fixed it locally with this change (2 lines in bold). The code that triggers the issue is attached
k8-python-error.txt. I can submit a pull request if desired.
The text was updated successfully, but these errors were encountered: