summaryrefslogtreecommitdiff
path: root/ceilometerclient/v2/shell.py
diff options
context:
space:
mode:
authorZhiQiang Fan <zhiqiang.fan@huawei.com>2014-04-29 11:44:04 +0800
committerZhiQiang Fan <zhiqiang.fan@huawei.com>2014-06-11 10:56:38 +0800
commit18342a412f2557199dc3d7b1d16f50baf92eac1b (patch)
tree269d25fc992688820310c563acafc41002500224 /ceilometerclient/v2/shell.py
parent339b55c319f0f7cbd2a8025d4eff47351d66a997 (diff)
downloadpython-ceilometerclient-18342a412f2557199dc3d7b1d16f50baf92eac1b.tar.gz
Fix alarm-threshold-update --query option
Currently, alarm-threshold-update command can not update its query field, because the dest value is removed accidently so the query is not put under threshold_rule dict. This patch simply adds it back. Change-Id: I2eeaf8cbb26f506e097dafdcb6d0eae4ad7fec3e Closes-Bug: #1313676
Diffstat (limited to 'ceilometerclient/v2/shell.py')
-rw-r--r--ceilometerclient/v2/shell.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ceilometerclient/v2/shell.py b/ceilometerclient/v2/shell.py
index c603814..3807c7b 100644
--- a/ceilometerclient/v2/shell.py
+++ b/ceilometerclient/v2/shell.py
@@ -544,6 +544,7 @@ def do_alarm_update(cc, args={}):
dest='threshold_rule/threshold',
help='Threshold to evaluate against.')
@utils.arg('-q', '--query', metavar='<QUERY>',
+ dest='threshold_rule/query',
help='key[op]data_type::value; list. data_type is optional, '
'but if supplied must be string, integer, float, or boolean.')
@utils.arg('--repeat-actions', dest='repeat_actions',