Project

General

Profile

Actions

Bug #35861

closed

Unable to promote content view due to "NoMethodError: undefined method `get_status' for nil:NilClass"

Added by Samir Jha almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Views
Target version:

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

Actions

Also available in: Atom PDF