Merge "Fix config and metadata in cluster update"
This commit is contained in:
commit
9e21cdfd1a
|
@ -315,11 +315,16 @@ class UpdateCluster(command.ShowOne):
|
||||||
parsed_args.profile_only,
|
parsed_args.profile_only,
|
||||||
strict=True,
|
strict=True,
|
||||||
),
|
),
|
||||||
'metadata': senlin_utils.format_parameters(parsed_args.metadata),
|
|
||||||
'config': senlin_utils.format_parameters(parsed_args.config),
|
|
||||||
'timeout': parsed_args.timeout,
|
'timeout': parsed_args.timeout,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if parsed_args.config is not None:
|
||||||
|
attrs['config'] = senlin_utils.format_parameters(
|
||||||
|
parsed_args.config)
|
||||||
|
if parsed_args.metadata is not None:
|
||||||
|
attrs['metadata'] = senlin_utils.format_parameters(
|
||||||
|
parsed_args.metadata)
|
||||||
|
|
||||||
senlin_client.update_cluster(cluster, **attrs)
|
senlin_client.update_cluster(cluster, **attrs)
|
||||||
if parsed_args.wait:
|
if parsed_args.wait:
|
||||||
# PATCH operations do not currently return an action to await.
|
# PATCH operations do not currently return an action to await.
|
||||||
|
|
Loading…
Reference in New Issue