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:
Yuanbin.Chen 2018-01-31 10:10:07 +08:00
parent 3784a4b4eb
commit e6cdf2dac8
1 changed files with 2 additions and 1 deletions

View File

@ -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: