Receiver update faild when action value None
This patch fix action default value None, schem 'ClusterActionName' check, the None not in CLUSTER_ACTION_NAMES Closes-bug: #1746391 Change-Id: I6b867611f99fc9fd35f08da8d225101ae3c3831e
This commit is contained in:
parent
3784a4b4eb
commit
e6cdf2dac8
@ -252,9 +252,10 @@ class UpdateReceiver(command.ShowOne):
|
||||
senlin_client = self.app.client_manager.clustering
|
||||
params = {
|
||||
'name': parsed_args.name,
|
||||
'action': parsed_args.action,
|
||||
'params': senlin_utils.format_parameters(parsed_args.params)
|
||||
}
|
||||
if parsed_args.action:
|
||||
params['action'] = parsed_args.action
|
||||
|
||||
receiver = senlin_client.find_receiver(parsed_args.receiver)
|
||||
if receiver is None:
|
||||
|
Loading…
Reference in New Issue
Block a user