Avoid deleting metadata incorrectly when doing profile_update
Currently, profile metadata will be removed incorrectly when user performs profile_update without specifying metadata option. This patch fixes this bug. Change-Id: I92bbfb07d4c820983659b59e100d27db0a6f29e7 Closes-Bug: #1481583
This commit is contained in:
parent
ff42b59a6a
commit
805df0e424
@ -178,8 +178,9 @@ def do_profile_update(sc, args):
|
||||
'name': args.name,
|
||||
'spec': spec,
|
||||
'permission': args.permission,
|
||||
'metadata': utils.format_parameters(args.metadata),
|
||||
}
|
||||
if args.metadata:
|
||||
params['metadata'] = utils.format_parameters(args.metadata)
|
||||
|
||||
# Find the profile first, we need its id
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user