Project

General

Profile

Actions

Bug #30747

closed

"capsule content" command not working in hammer shell

Added by Oleh Fedorenko about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Other commands
Target version:
-
Difficulty:
Triaged:
Yes
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

Actions #1

Updated by Oleh Fedorenko about 4 years ago

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

Updated by The Foreman Bot about 4 years ago

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

Updated by The Foreman Bot about 4 years ago

  • Fixed in Releases hammer-cli-2.3.0 added
Actions #4

Updated by Oleh Fedorenko about 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by Oleh Fedorenko about 4 years ago

  • Fixed in Releases hammer-cli-2.1.2 added
Actions #6

Updated by Oleh Fedorenko about 4 years ago

  • Fixed in Releases hammer-cli-2.2.1 added
Actions

Also available in: Atom PDF