Open jamesmarshall24 opened 3 years ago
It's a bit hard to debug if all your data is "redact"
Can you please send the real playbook and the real output to evgeni@redhat.com? thanks.
@evgeni sent
I got the data, but by the love of god don't see how this should fail in that environment :(
Could you get me the output of the following playbook please?
- name: get sub info
redhat.satellite.subscription_info:
username: "{{ foreman_username }}"
password: "{{ foreman_password }}"
server_url: "{{ foreman_url }}"
validate_certs: "{{ foreman_validate_certs }}"
organization: "{{ foreman_organization }}"
register: subs
- debug:
var: subs
(fill out the vars as needed, obviously ;))
SUMMARY
Local products return "Found no results while searching for subscriptions with id=redact" when state is not explicitly provided as "present" for activation_key module
ISSUE TYPE
ANSIBLE VERSION
COLLECTION VERSION
KATELLO/FOREMAN VERSION
STEPS TO REPRODUCE
EXPECTED RESULTS
Pool ID found for local products
ACTUAL RESULTS
Listing the subscriptions show the subscription ID.
Adding "state: present" resolves the issue although that should be the default value.