Bug #4136
closed`os info` fails after adding a parameter to an OS => malformed format string - ArgumentError
Description
Description of problem:
`os info` fails after the adding parameter to os
- rpm -qa | grep foreman
rubygem-hammer_cli_foreman-0.0.15-1.el6.noarch
foreman-installer-1.4.0-0.develop.201401102003gitcc00eed.el6.noarch
foreman-selinux-1.4.0-0.develop.201311220906gite342a0b.el6.noarch
rubygem-foreman_api-0.1.9-1.el6.noarch
foreman-compute-1.4.0-0.develop.201401111533git229d743.el6.noarch
foreman-proxy-1.4.0-0.develop.201401031522gitd3509e6.el6.noarch
foreman-libvirt-1.4.0-0.develop.201401111533git229d743.el6.noarch
foreman-release-1.4.0-0.develop.201401111533git229d743.el6.noarch
foreman-1.4.0-0.develop.201401111533git229d743.el6.noarch
foreman-ovirt-1.4.0-0.develop.201401111533git229d743.el6.noarch
foreman-postgresql-1.4.0-0.develop.201401111533git229d743.el6.noarch
How reproducible:
everytime
Steps to Reproduce:
1.# hammer os set_parameter --os-id 6 --name testname --value testvalue
New operating system parameter created
2.# hammer os info --id 6
Id: 6
Name: testos 4.3
Release name:
Family: Debian
Installation media:
Architectures:
Partition tables:
Config templates:
Parameters:
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/lib/hammer_cli/utils.rb:12:in `%': malformed format string - %{ (ArgumentError)
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/lib/hammer_cli/utils.rb:12:in `format'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/lib/hammer_cli/output/adapter/abstract.rb:27:in `print_error'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/lib/hammer_cli/output/output.rb:16:in `print_error'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/lib/hammer_cli/exception_handler.rb:42:in `print_error'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/lib/hammer_cli/exception_handler.rb:58:in `handle_general_exception'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/lib/hammer_cli/exception_handler.rb:25:in `send'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/lib/hammer_cli/exception_handler.rb:25:in `handle_exception'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/lib/hammer_cli/abstract.rb:177:in `handle_exception'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/lib/hammer_cli/abstract.rb:26:in `run'
from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.0.14/bin/hammer:61
from /usr/bin/hammer:19:in `load'
from /usr/bin/hammer:19
3.
Actual results:
os info fails
Expected results:
os info should work
Updated by Martin Bacovsky about 10 years ago
- Status changed from New to Closed
This issue seems to be fixed in version 0.0.18