Use the exported count in the manifest for the node count, if present.

This commit is contained in:
Bill Nottingham
2020-11-11 11:23:16 -05:00
parent e4d9cd4000
commit a092406543

View File

@@ -134,6 +134,9 @@ class Licenser(object):
# Parse output for subscription metadata to build config # Parse output for subscription metadata to build config
license = dict() license = dict()
license['sku'] = manifest['pool']['productId'] license['sku'] = manifest['pool']['productId']
try:
license['instance_count'] = manifest['pool']['exported']
except KeyError:
license['instance_count'] = manifest['pool']['quantity'] license['instance_count'] = manifest['pool']['quantity']
license['subscription_name'] = manifest['pool']['productName'] license['subscription_name'] = manifest['pool']['productName']
license['pool_id'] = manifest['pool']['id'] license['pool_id'] = manifest['pool']['id']