To reproduce: <pre> hammer hostgroup update --id 5 --puppet-classes "apache::mod::authnz_ldap,apache::dev" </pre> will fail. The problem is in the API response handling in id_resolver.rb API response was grouped by namespace and validated groups count against number of classes in the requested parameters.
Created from redmine issue http://projects.theforeman.org/issues/14930
Upstream bug assigned to sshtein
Moving to POST since upstream bug http://projects.theforeman.org/issues/14930 has been closed
Verified in snap 13. $ hammer hostgroup update --name test --puppet-classes "apache::mod::authnz_ldap,apache::dev" Hostgroup updated $ hammer hostgroup info --name test Id: 1 Name: test Title: test Puppet CA Proxy Id: Puppet Master Proxy Id: Puppetclasses: apache::dev apache::mod::authnz_ldap Parameters: Parent Id:
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1501