mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 10:57:36 -02:30
Merge pull request #4682 from wenottingham/subs-corner-cases
Use the exported count in the manifest for the node count, if present.
This commit is contained in:
@@ -134,7 +134,10 @@ 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']
|
||||||
license['instance_count'] = manifest['pool']['quantity']
|
try:
|
||||||
|
license['instance_count'] = manifest['pool']['exported']
|
||||||
|
except KeyError:
|
||||||
|
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']
|
||||||
license['license_date'] = parse_date(manifest['endDate']).strftime('%s')
|
license['license_date'] = parse_date(manifest['endDate']).strftime('%s')
|
||||||
|
|||||||
Reference in New Issue
Block a user