RedHatSatellite / katello-attach-subscription

automatically assign subscriptions to hypervisors based on certain rules
GNU General Public License v2.0
10 stars 5 forks source link

Fix getting facts for hosts from the API #70

Open DoGab opened 4 years ago

DoGab commented 4 years ago

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 https://github.com/RedHatSatellite/katello-attach-subscription/issues/69