Project

General

Profile

Bug #24717

hammer hostgroup create fails due to pagination when the number of supplied puppet classes exceeds entries_per_page

Added by Cameron Berkley about 1 year ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Category:
Host groups
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

"hammer hostgroup create" fails with "HammerCLIForeman::ResolverError (one of puppetclasses not found.)" when the number of classes passed into --puppet-classes exceeds the entries_per_page Foreman setting. Hammer queries /api/puppetclasses but appears to ignore classes after the first page.


Related issues

Has duplicate Hammer CLI - Bug #22693: hammer can't create user-group with more than 20 rolesClosed

Associated revisions

Revision c7b66192 (diff)
Added by Oleh Fedorenko 5 months ago

Fixes #24717 - Create hostgroup with puppet classes

History

#1 Updated by Oleh Fedorenko 7 months ago

  • Assignee set to Oleh Fedorenko
  • Status changed from New to Assigned

#2 Updated by The Foreman Bot 7 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/417 added

#3 Updated by Martin Bacovsky 5 months ago

  • Has duplicate Bug #22693: hammer can't create user-group with more than 20 roles added

#4 Updated by Oleh Fedorenko 5 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF