Merge remote-tracking branch 'downstream' into downstream

This commit is contained in:
Ryan Petrello
2020-11-11 13:30:21 -05:00
5 changed files with 18 additions and 44 deletions

View File

@@ -134,7 +134,10 @@ class Licenser(object):
# Parse output for subscription metadata to build config
license = dict()
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['pool_id'] = manifest['pool']['id']
license['license_date'] = parse_date(manifest['endDate']).strftime('%s')