Bug 1314775
Summary: | hammer activation-key --unlimited-content-hosts flag is confusing | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Roman Plevka <rplevka> |
Component: | Hammer | Assignee: | Zach Huntington-Meath <zhunting> |
Status: | CLOSED ERRATA | QA Contact: | Katello QA List <katello-qa-list> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.2.0 | CC: | bbuckingham, cwelton, kbidarka |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://projects.theforeman.org/issues/14333 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-07-27 11:30:14 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Roman Plevka
2016-03-04 12:59:39 UTC
Created redmine issue http://projects.theforeman.org/issues/14333 from this bug Moving to POST since upstream bug http://projects.theforeman.org/issues/14333 has been closed ------------- Zach Huntington-Meath Applied in changeset commit:hammer-cli-katello|fb494a72c1f4206004490cdfde11d36709aa9267. VERIFIED Sat6.2.0 Beta (GA13.1) The option now acts like a flag and makes more sense: <pre> # hammer -u admin -p changeme activation-key create --unlimited-hosts --organization-id 1 --name foo Activation key created # hammer activation-key create --organization-id 1 --name bar [Foreman] Password for admin: Activation key created # hammer activation-key list --organization-id 1 [Foreman] Password for admin: ---|---------|----------------|-----------------------|------------- ID | NAME | HOST LIMIT | LIFECYCLE ENVIRONMENT | CONTENT VIEW ---|---------|----------------|-----------------------|------------- 12 | foo | 0 of Unlimited | | 13 | bar | 0 of Unlimited | | ---|---------|----------------|-----------------------|------------- # hammer activation-key update --organization-id 1 --id 12 --help Usage: hammer activation-key update [OPTIONS] Options: ... --max-hosts MAX_HOSTS maximum number of registered content hosts ... --unlimited-hosts set hosts max to unlimited -h, --help print help # hammer -u admin -p changeme activation-key update --organization-id 1 --id 12 --max-hosts 1 Activation key updated # hammer -u admin -p changeme activation-key list --organization-id 1 ---|---------|----------------|-----------------------|------------- ID | NAME | HOST LIMIT | LIFECYCLE ENVIRONMENT | CONTENT VIEW ---|---------|----------------|-----------------------|------------- 12 | foo | 0 of 1 | | 13 | bar | 0 of Unlimited | | ---|---------|----------------|-----------------------|------------- # hammer activation-key update --organization-id 1 --id 12 --unlimited-hosts [Foreman] Password for admin: Activation key updated hammer -u admin -p changeme activation-key list --organization-id 1---|---------|----------------|-----------------------|------------- ID | NAME | HOST LIMIT | LIFECYCLE ENVIRONMENT | CONTENT VIEW ---|---------|----------------|-----------------------|------------- 12 | foo | 0 of Unlimited | | 13 | bar | 0 of Unlimited | | ---|---------|----------------|-----------------------|------------- </pre> 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 |