Merge "Unsubmitted name field shoud be ignored"

This commit is contained in:
Zuul 2018-12-04 05:48:27 +00:00 committed by Gerrit Code Review
commit 5cf1f0d246
1 changed files with 2 additions and 1 deletions

View File

@ -1027,7 +1027,8 @@ def do_trigger_update(cs, args):
"""Update a trigger."""
trigger_info = {}
trigger_properties = arg_utils.extract_properties(args)
trigger_info['name'] = args.name
if args.name:
trigger_info['name'] = args.name
trigger_info['properties'] = trigger_properties
trigger = cs.triggers.update(args.trigger_id, trigger_info)
dict_format_list = {"properties"}