You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When specifying a label in the product module, and a product with the given name already exists, the module will produce a warning. It should instead use the label to identify the product, and update the name instead.
Note: not sure why it reports theforeman.foreman 2.2.0. Ansible-galaxy collection list theforeman.foreman reports version 3.8.0:
# /home/kkeane/.virtualenvs/ansible5.4/lib/python3.8/site-packages/ansible_collections
Collection Version
------------------ -------
theforeman.foreman 2.2.0
# /home/kkeane/.ansible/collections/ansible_collections
Collection Version
------------------ -------
theforeman.foreman 3.8.0
KATELLO/FOREMAN VERSION
I assume this is supposed to be on the server? In any case, there is no package tfm-rubygem-katello, but there is a package rubygem-katello
package tfm-rubygem-katello is not installed
foreman-3.4.1-1.el8.noarch
rpm -q rubygem-katello
rubygem-katello-4.6.0-1.el8.noarch
STEPS TO REPRODUCE
Create a product named "Testproduct 1" with the label testproduct_1
Use Ansible to update the description, using the same label but a different name.
Precondition: ensure that there is no product with the names "Testproduct 1" or "Testproduct 1 changed", and no product with the label "testproduct_1".
Note: this test case is artificial; it should work but I have not run this exact sequence.
theforeman.foreman.product:
name: Testproduct 1label: testproduct_1organization: <whatever is appropriate>theforeman.foreman.product:
name: Testproduct 1label: testproduct_1description: Updating the descriptionorganization: <whatever is appropriate>theforeman.foreman.product:
name: Testproduct 1 changedlabel: testproduct_1organization: <whatever is appropriate>
EXPECTED RESULTS
All three module calls should complete without an error. You should end up with a product with the name "Testproduct 1 changed", the label "testproduct_1" and the description "Updating the description"
ACTUAL RESULTS
The second call succeeds but produces the following warning:
[WARNING]: The following parameters are not supported by your server when performing update on products: {'label'}. They were ignored.
I am not sure if the third call will succeed or fail.
The text was updated successfully, but these errors were encountered:
SUMMARY
When specifying a label in the product module, and a product with the given name already exists, the module will produce a warning. It should instead use the label to identify the product, and update the name instead.
ISSUE TYPE
ANSIBLE VERSION
COLLECTION VERSION
Note: not sure why it reports theforeman.foreman 2.2.0. Ansible-galaxy collection list theforeman.foreman reports version 3.8.0:
KATELLO/FOREMAN VERSION
I assume this is supposed to be on the server? In any case, there is no package tfm-rubygem-katello, but there is a package rubygem-katello
STEPS TO REPRODUCE
Precondition: ensure that there is no product with the names "Testproduct 1" or "Testproduct 1 changed", and no product with the label "testproduct_1".
Note: this test case is artificial; it should work but I have not run this exact sequence.
EXPECTED RESULTS
All three module calls should complete without an error. You should end up with a product with the name "Testproduct 1 changed", the label "testproduct_1" and the description "Updating the description"
ACTUAL RESULTS
The second call succeeds but produces the following warning:
[WARNING]: The following parameters are not supported by your server when performing update on products: {'label'}. They were ignored.
I am not sure if the third call will succeed or fail.
The text was updated successfully, but these errors were encountered: