Bug #14778
Updated by Dominic Cleal almost 9 years ago
Hi, I want to use the config option via foreman-rake to update the 'ignored_interface_identifiers' setting in Foreman but I'm facing some problems: Tested on foreman 1.10.2: <pre> $ /usr/sbin/foreman-rake -- config -k ignored_interface_identifiers ["lo"] $ /usr/sbin/foreman-rake -- config -k ignored_interface_identifiers -v '["lo","awdl*"]' "[\"lo\", \"awdl*\"]" $ /usr/sbin/foreman-rake -- config -k ignored_interface_identifiers "[\"lo\", \"awdl*\"]" </pre> On this point, the foreman log shows some errors connected to the filtering of the interfaces: <pre> 2016-04-22 14:31:19 [app] [W] Action failed | NoMethodError: undefined method `map' for #<String:0x0000000931c938> | /usr/share/foreman/app/models/setting.rb:183:in `convert_array_to_regexp' | /usr/share/foreman/app/services/fact_parser.rb:166:in `ignored_interfaces' | /usr/share/foreman/app/services/fact_parser.rb:171:in `block in remove_ignored' </pre> The way to solve it is to use the web UI and the setting is sanitized: <pre> $ /usr/sbin/foreman-rake -- config -k ignored_interface_identifiers ["lo", "awdl*"] </pre> I don't know if this is more connected to the foreman-rake or the implementation of the interface filtering. Any feedback or tip is welcomed :)