Skip to content

Commit

Permalink
Support multi-stemcell Ops Manager (2.6+) in pcf configure.
Browse files Browse the repository at this point in the history
  • Loading branch information
mboldt committed Jun 28, 2019
1 parent de4e5c5 commit 07a301e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tile_generator/opsmgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,12 @@ def configure(product, properties, strict=False, skip_validation=False, network=
# Use the Elastic Runtime stemcell (unless the --strict option was used)
#
if not strict:
stemcell = cf[0]['stemcell']
if 'stemcell' in cf[0]:
stemcell = cf[0]['stemcell']
elif 'stemcells' in cf[0]:
stemcell = cf[0]['stemcells'][0]
else:
raise Exception("Cannot find cf stemcell to use")
print('- Using stemcell', stemcell['name'], 'version', stemcell['version'])
product_settings['stemcell'] = stemcell
post_yaml('/api/installation_settings', 'installation[file]', settings)
Expand Down

0 comments on commit 07a301e

Please sign in to comment.