Skip to content

Patching project fails to return a project #21

@chouseknecht

Description

@chouseknecht

Updating the name or description on an existing project is resulting in None being returned by the helper's patch_object() method.

Here's the error message returned by the module:

The full traceback is:
Traceback (most recent call last):
  File "/var/folders/g_/mr68c1yn1rl4b7qh6pntbmmm0000gn/T/ansible_u9htzn/ansible_module_k8s_v1_project.py", line 330, in <module>
    main()
  File "/var/folders/g_/mr68c1yn1rl4b7qh6pntbmmm0000gn/T/ansible_u9htzn/ansible_module_k8s_v1_project.py", line 324, in main
    module.execute_module()
  File "/var/folders/g_/mr68c1yn1rl4b7qh6pntbmmm0000gn/T/ansible_u9htzn/ansible_modlib.zip/ansible/module_utils/k8s_common.py", line 183, in execute_module
AttributeError: 'NoneType' object has no attribute 'to_dict'

fatal: [localhost]: FAILED! => {
    "changed": false,
    "failed": true,
    "module_stderr": "Traceback (most recent call last):\n  File \"/var/folders/g_/mr68c1yn1rl4b7qh6pntbmmm0000gn/T/ansible_u9htzn/ansible_module_k8s_v1_project.py\", line 330, in <module>\n    main()\n  File \"/var/folders/g_/mr68c1yn1rl4b7qh6pntbmmm0000gn/T/ansible_u9htzn/ansible_module_k8s_v1_project.py\", line 324, in main\n    module.execute_module()\n  File \"/var/folders/g_/mr68c1yn1rl4b7qh6pntbmmm0000gn/T/ansible_u9htzn/ansible_modlib.zip/ansible/module_utils/k8s_common.py\", line 183, in execute_module\nAttributeError: 'NoneType' object has no attribute 'to_dict'\n",
    "module_stdout": "",
    "msg": "MODULE FAILURE",
    "rc": 0
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions