Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #5802 HC update/create using system uuids #178

Merged

Conversation

dustints
Copy link
Member

Host Collections update/create take uuids instead of ids to follow
other commands in Host Collections. Also updates Host Collections
content-host command to display uuids as ids.

depends on Katello/katello#4175

@@ -66,6 +75,7 @@ class CopyCommand < HammerCLIKatello::CreateCommand
end

class UpdateCommand < HammerCLIKatello::UpdateCommand
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this class need build_options :without => [:system_uuids] too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@komidore64
it's nice to have, otherwise both options
--system-uuids
--system-ids
would show up in the help dialog making it confusing to the user. https://github.com/dustint-rh/katello/blob/0867b36b1e01fe6bdf2470a17038ec6edb2bcbab/app/controllers/katello/api/v2/host_collections_controller.rb#L64

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, i'm asking if this class needs it as well, because this PR isn't adding build_options :without => [:system_uuids] for the UpdateCommand. you're only adding it for the CreateCommand.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@komidore64 ah yeah, you're right. I'm going to update.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@komidore64 updated

Host Collections update/create take uuids instead of ids to follow
other commands in Host Collections. Also updates Host Collections
content-host command to display uuids as ids.
@komidore64
Copy link
Contributor

ack pending travis

dustints pushed a commit that referenced this pull request Jun 2, 2014
…ys_uuid

Fixes #5802 HC update/create using system uuids
@dustints dustints merged commit 3d60a40 into Katello:master Jun 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants