Bug #36258
closedInstallation of multiple errata failed because of reg-exp
Description
Using the hammer cli to install multiple errata fails:
[root@or hammer_cli-3.3.0]# hammer job-invocation create --feature katello_errata_install --inputs errata=ERRATA1,ERRATA2 --search-query "name=example.host"
Error: Option '--inputs': Value must be defined as a comma-separated list of key=value or valid JSON..
The errata job template expectes a "comma separated list of errata" like "Errata1,Errata" as "inputs":
https://github.com/Katello/katello/blob/master/app/views/foreman/job_templates/install_errata.erb#L10
Unfortuantely, a "," is not a valid "value" of the hammer cli:
https://github.com/theforeman/hammer-cli/blob/master/lib/hammer_cli/options/normalizers.rb#L54
Solution 1: fix the hammer cli somehow
Solution 2: use another way to separate multiple errata in the job-template. Possiblity is high, that "comma" is used in other job templates, too (restart_services template e.g.)