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

Fix getting facts for hosts from the API #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DoGab
Copy link

@DoGab DoGab commented Oct 4, 2019

Get the facts for a host with an own API call because the facts are not included in the API call to show the host. This will make it possible for KAS to determine the quantity of CPU sockets on a host and therefore make it possible to attach the correct quantity of entitlements of a subscription.

Tested with Satellite 6.5 and API Version 2

Fixes #69

Copy link

@kallies kallies left a comment

Choose a reason for hiding this comment

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

Minor question

katello-attach-subscription Outdated Show resolved Hide resolved
Add missing .to_i to convert return value from the api to a number
@DoGab DoGab force-pushed the fix/entitlement_quantity branch from 0889fbc to 88a2984 Compare October 4, 2019 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not attaching the correct quantity of subscription entitlements because facts are not available
2 participants