Project

General

Profile

Bug #14365

host-collection create|update => update commands to support host arguments

Added by Brad Buckingham over 3 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

The host-collection 'create' and 'update' commands do not currently allow a user to provide host inputs. In past releases, the user could specify the content-hosts as part of these commands; therefore, we should retain that capability post-host-unification.

The following are a few examples that should be supported:

hammer> host-collection create --organization-id 1 --name with-hosts --host-ids 1
Host collection created

hammer> host-collection create --organization-id 1 --name with-hosts-by-name --hosts "rhel7-client.test"
Host collection created

hammer> host-collection update --id 4 --host-ids 1
Host collection updated

hammer> host-collection update --id 5 --hosts 'rhel7-client.test'
Host collection updated

Associated revisions

Revision b81eaef2 (diff)
Added by Brad Buckingham over 3 years ago

fixes #14365 - host-collection create|update - fix to support host input

Prior to host-unification, users could provide a list of content hosts
as inputs to the host-collection create and update commands. This
commit should now allow them to provide a list of 'hosts'.

The following are a few valid scenarios:

hammer> host-collection create --organization-id 1 --name with-hosts --host-ids 1
Host collection created

hammer> host-collection create --organization-id 1 --name with-hosts-by-name --hosts "rhel7-client.test"
Host collection created

hammer> host-collection update --id 4 --host-ids 1
Host collection updated

hammer> host-collection update --id 5 --hosts 'rhel7-client.test'
Host collection updated

Revision a67ee8f4
Added by Brad Buckingham over 3 years ago

Merge pull request #372 from bbuckingham/issue-14365

fixes #14365 - host-collection create|update - fix to support host input

History

#1 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/372 added

#2 Updated by Brad Buckingham over 3 years ago

  • Bugzilla link set to 1321129

#3 Updated by Brad Buckingham over 3 years ago

  • Bugzilla link changed from 1321129 to 1317674

#4 Updated by Brad Buckingham over 3 years ago

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

#5 Updated by Eric Helms over 3 years ago

  • Legacy Backlogs Release (now unused) set to 86

Also available in: Atom PDF