Merge "Return empty list instead of None for tags"

This commit is contained in:
Zuul 2020-05-11 21:59:55 +00:00 committed by Gerrit Code Review
commit 4c5abb4909
2 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ def format_stack(stack, preview=False, resolve_outputs=True):
rpc_api.STACK_OWNER: stack.username,
rpc_api.STACK_PARENT: stack.owner_id,
rpc_api.STACK_USER_PROJECT_ID: stack.stack_user_project_id,
rpc_api.STACK_TAGS: stack.tags or None,
rpc_api.STACK_TAGS: stack.tags,
}
if not preview:

View File

@ -397,7 +397,7 @@ class FormatTest(common.HeatTestCase):
'outputs': [],
'template_description': 'No description',
'timeout_mins': None,
'tags': None,
'tags': [],
'parameters': {
'AWS::Region': 'ap-southeast-1',
'AWS::StackId': aws_id,