Bug #35861
closedUnable to promote content view due to "NoMethodError: undefined method `get_status' for nil:NilClass"
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2147579
Description of problem:
Unable to promote content view due to "NoMethodError: undefined method `get_status' for nil:NilClass"
Version-Release number of selected component (if applicable):
How reproducible:*
100%
Steps to Reproduce:
1. Publish job is working as expected using the Ansible playbook.
2. Promoting with the below playbook fails with error:-
3. Run a playbook using the module `redhat.satellite.content_view_version`
```
- name: Publish new content view version to lib and dev
redhat.satellite.content_view_version:
username: "{{ user }}"
password: "{{ pw }}"
server_url: "{{ url }}"
content_view: "{{ view }}"
organization: "{{ org }}"
validate_certs: no
description: "testing content view"
lifecycle_environments:
- Dev
loop: "{{ views }}"
loop_control:
loop_var: view
```
Actual results:
"msg": "Task Promote content view 'Test'; organization 'Test'(xxxxxx) did not succeed. Task information: [\"undefined method `get_status' for nil:NilClass\"]",
Expected results:
Success