Project

General

Profile

Bug #23881

hammer recurring-logic list command does not accept options --per-page or --page but suggests those option

Added by Adam Ruzicka over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Foreman plugin
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1583318

Description of problem:
hammer recurring-logic list command does not accept options --per-page or --page but suggests them when there are more number of output rows

Version-Release number of selected component (if applicable):
Satellite 6.3

How reproducible:
Always

Steps to Reproduce:
1. Have more number of recurring logics, let say more than 15
2. Try to list them using below command:
_______________________ # hammer recurring-logic list
_______________________
o/p:
______________________________________________________________
---|-------------|----------|-----------|----------
ID | CRON LINE | END TIME | ITERATION | STATE
---|-------------|----------|-----------|----------
// some output rows will be displayed here followed by below message
---|-------------|----------|-----------|----------
Page 1 of 6 (use --page and --per-page for navigation)
______________________________________________________________

3.Now use either of the options mentioned:
____________________________________ # hammer recurring-logic list --per-page 20
Error: Unrecognised option '--per-page'

See: 'hammer recurring-logic list --help'
____________________________________

Actual results:
hammer command is not accepting the mentioned option and giving below error:
____________________________________
Error: Unrecognised option '--per-page'

See: 'hammer recurring-logic list --help'
____________________________________

Expected results:
Either those options should be accepted by the command or if not then the message should be removed that suggests to run those options.

Additional info:
After checking the possible options with --help, it did not give any such options so it seems to me that no such option exists there at the moment.
___________________________________
  1. hammer recurring-logic list -h
    Usage:
    hammer recurring-logic list [OPTIONS]

Options:
-h, --help print help
___________________________________

Associated revisions

Revision e6dccacb (diff)
Added by Adam Ruzicka over 1 year ago

Fixes #23881 - Document pagination of recurring logic in apidoc

History

#1 Updated by Adam Ruzicka over 1 year ago

  • Assignee set to Adam Ruzicka
  • Category set to Foreman plugin

#2 Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-tasks/pull/346 added

#3 Updated by Adam Ruzicka over 1 year ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF