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
Updated by The Foreman Bot almost 2 years ago
- Status changed from New to Ready For Testing
- Assignee set to Samir Jha
- Pull request https://github.com/Katello/katello/pull/10391 added
Updated by Samir Jha almost 2 years ago
- Subject changed from Unable to promote content view due to "NoMethodError: undefined method `get_status' for nil:NilClass" to Unable to promote content view due to "NoMethodError: undefined method `get_status' for nil:NilClass"
- Target version set to Katello 4.8.0
- Triaged changed from No to Yes
Updated by The Foreman Bot almost 2 years ago
- Fixed in Releases Katello 4.8.0 added
Updated by Samir Jha almost 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|f37728cc5f2eb57ad9e242573ef7a647a4e2cb92.
Updated by The Foreman Bot almost 2 years ago
- Pull request https://github.com/Katello/katello/pull/10421 added
Updated by The Foreman Bot almost 2 years ago
- Pull request https://github.com/Katello/katello/pull/10430 added