Skip to content

Commit

Permalink
Fix cloudman plugin to user correct storage type for galaxy
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwang committed Dec 13, 2017
1 parent 0987807 commit ab9d900
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -48,10 +48,14 @@ def process_app_config(provider, name, cloud_config, app_config):
user_data['share_string'] = cloudman_config.get("clusterSharedString")
user_data['cluster_templates'] = cloudman_config.get(
"cluster_templates", [])
# File system template default value for file system size overwrites
# the user-provided storage_size value so remove it if both exits
# Adjust filesystem templates according to user selections
for ct in user_data['cluster_templates']:
for ft in ct.get('filesystem_templates', []):
if 'galaxyData' in ft.get('roles', ''):
ft['type'] = user_data['cluster_storage_type']
# File system template default value for file system size
# overwrites the user-provided storage_size value so remove it
# if both exits
if ft.get('size') and user_data['storage_size']:
del ft['size']
extra_user_data = cloudman_config.get("extraUserData")

0 comments on commit ab9d900

Please sign in to comment.