-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kt_activation_keys in parameters get duplicated #1268
Comments
I have this problem as well. It would be nice if a parameter exists it would return "ok" in the Ansible run. |
@KoffiemokmetThee the cleanest solution should be to use the dedicated |
@KoffiemokmetThee there is a patch in #1271 if you want to try it out :) |
With 2.2.0 this bug still occurs to me - I have set kt_activation_keys via "params" and it breaks on a second run. I could not find dedicated "activation_keys" parameter in hostgroup.py - is it provided by HostMixing somehow? |
It's provided by the
let me spin up a fresh katello and try that out again. |
Hum, works for me. Can you show me your playbook please? I essentially do: - theforeman.foreman.hostgroup:
…
parameters:
- name: kt_activation_keys
parameter_type: string
value: new_key |
I've added tests here: #1278 |
Basically the same:
where hg has:
Difference is lack of "parameter_type" and multiple other params except besides kt_activation_keys. FYI I've switched to activation_keys and it works. |
Nope, neither dropping the But glad |
SUMMARY
if you pass
to
hostgroup
, you end up with the duplicate param error on the second run of the playbook, as the below code doesn't check if the param actually needs to be appended againforeman-ansible-modules/plugins/module_utils/foreman_helper.py
Lines 320 to 330 in 604f60b
ISSUE TYPE
ANSIBLE VERSION
COLLECTION VERSION
KATELLO/FOREMAN VERSION
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: