Closed jhutar closed 2 years ago
I am sorry, but Foreman 1.19 is not supported.
I do not know if this is a correct fix, but I workarounded it with:
def parameters_list_to_str_list(parameters):
filtered_params = []
for param in parameters:
new_param = {k: v for (k, v) in param.items() if k in parameter_ansible_spec.keys()}
+ new_param['value'] = parameter_value_to_str(new_param['value'], new_param.get('parameter_type', 'string'))
- new_param['value'] = parameter_value_to_str(new_param['value'], new_param['parameter_type'])
filtered_params.append(new_param)
return filtered_params
it is not, no, as that would break the "default is string" behaviour on newer systems. (it might get you further, but given 1.19 is so old, I totally expect other parts of FAM being also broken with it)
Agreed. Btw this fixed the issue for me and I'm now able to set build
status and restart it via this Foreman which was mine end-goal.
SUMMARY
I was trying to set build status for a host and it fails with python traceback.
ISSUE TYPE
ANSIBLE VERSION
COLLECTION VERSION
KATELLO/FOREMAN VERSION
I do not have access to ssh to the Foreman, but UI says
Version 1.19.1
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS