Skip to content

Commit

Permalink
fix python error in bigip modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeshimkus committed Feb 28, 2023
1 parent 8b12866 commit f8541cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/modules/bigip-autoscale/bigip_autoscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def create_instance_template(context, instance_template):
'bigIqSecretId' in context.properties else ''
secret_id = str(context.properties['secretId']) if \
'secretId' in context.properties else ''
source_image = ''.join([COMPUTE_URL_BASE, 'projects/', context.properties['customImageId'],]) if context.properties['customImageId'] else \
source_image = ''.join([COMPUTE_URL_BASE, 'projects/', context.properties['customImageId'],]) if 'customImageId' in context.properties and context.properties['customImageId'] else \
''.join([COMPUTE_URL_BASE, 'projects/f5-7626-networks-public/global/images/', context.properties['imageName'],])
telemetry_flag = '' if context.properties['allowUsageAnalytics'] else '--skip-telemetry'
properties = {}
Expand Down
2 changes: 1 addition & 1 deletion examples/modules/bigip-standalone/bigip_standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def create_instance(context):
name = context.properties.get('name') or \
context.env['name']
instance_name = generate_name(context.properties['uniqueString'], name)
source_image = ''.join([COMPUTE_URL_BASE, 'projects/', context.properties['customImageId'],]) if context.properties['customImageId'] else \
source_image = ''.join([COMPUTE_URL_BASE, 'projects/', context.properties['customImageId'],]) if 'customImageId' in context.properties and context.properties['customImageId'] else \
''.join([COMPUTE_URL_BASE, 'projects/f5-7626-networks-public/global/images/', context.properties['imageName'],])
properties = {}
# Setup Defaults - property updated to given value when property exists in config
Expand Down

0 comments on commit f8541cc

Please sign in to comment.