Merge pull request #7270 from john-westcott-iv/fix_tower_settings_none

Prevent exception for Non value

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot]
2020-06-08 21:05:58 +00:00
committed by GitHub
2 changed files with 15 additions and 0 deletions

View File

@@ -80,6 +80,10 @@ except ImportError:
def coerce_type(module, value):
# If our value is already None we can just return directly
if value is None:
return value
yaml_ish = bool((
value.startswith('{') and value.endswith('}')
) or (