Project

General

Profile

Bug #30747

"capsule content" command not working in hammer shell

Added by Oleh Fedorenko 5 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Category:
Other commands
Target version:
-
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Found in Releases:
In Kanboard:

Description

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

Description of problem:
Running "hammer capsule content" doesn't work properly.

Version-Release number of selected component (if applicable):
Satellite 6.8 Snap 10
tfm-rubygem-hammer_cli-2.1.1-1.el7sat.noarch

How reproducible:
always

Steps to Reproduce:
1. Start "hammer shell"
2. Run "capsule content"

Actual results:
Running "capsule --help" gives following output:

hammer> capsule --help
Usage:
capsule [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
SUBCOMMAND Subcommand
[ARG] ... Subcommand arguments

Subcommands:
content Manage the capsule content
create Create a capsule
delete Delete a capsule
import-classes Import puppet classes from puppet Capsule
info Show a capsule
list List all capsules
refresh-features Refresh capsule features
update Update a capsule

Options:
-h, --help

If you try "capsule content" or "capsule content --help" you will get following:

hammer> capsule content
Error: Found more than one command.

Did you mean one of these?
content-credentials
content-view

The "capsule content" command cannot be run from hammer shell. Replacing "capsule" with "proxy" causes the same error.

Expected results:
The "capsule content" command can be run from hammer shell

Additional info:
The workaround is simple - run the command directly from the command shell like bash. Running "hammer capsule content --help" returns correct data.

$ hammer capsule content --help
Usage:
hammer capsule content [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
SUBCOMMAND Subcommand
[ARG] ... Subcommand arguments

Subcommands:
add-lifecycle-environment Add lifecycle environments to the capsule
available-lifecycle-environments List the lifecycle environments not attached to the capsule
cancel-synchronization Cancel running capsule synchronization
info Get current capsule synchronization status
lifecycle-environments List the lifecycle environments attached to the capsule
remove-lifecycle-environment Remove lifecycle environments from the capsule
synchronization-status Get current capsule synchronization status
synchronize Synchronize the content to the capsule

Options:
-h, --help Print help

Associated revisions

Revision 3e5df064 (diff)
Added by Oleh Fedorenko 5 months ago

Fixes #30747 - Make fuzzy search work in hammer shell (#335)

History

#1 Updated by Oleh Fedorenko 5 months ago

  • Triaged changed from No to Yes
  • Assignee set to Oleh Fedorenko
  • Status changed from New to Assigned

#2 Updated by The Foreman Bot 5 months ago

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

#3 Updated by The Foreman Bot 5 months ago

  • Fixed in Releases hammer-cli-2.3.0 added

#4 Updated by Oleh Fedorenko 5 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Oleh Fedorenko 5 months ago

  • Fixed in Releases hammer-cli-2.1.2 added

#6 Updated by Oleh Fedorenko 5 months ago

  • Fixed in Releases hammer-cli-2.2.1 added

Also available in: Atom PDF