20 Commits

Author SHA1 Message Date
Yuanbin.Chen
79b83d96ae Support receiver update operation
This patch add receiver update operation,
Then user cloud run 'receiver-update' command.
use receiver-update change has exist receiver name,action and params.

Implements: blueprint add-receiver-update

Depends-On: I228edd1f5ada5b91e82ef04c95e9a7fa2b7de305
Change-Id: I8adaef75c18b93ec46d95e91f2058f6a4b8d4608
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
2017-06-15 03:45:14 +00:00
liyi
6d238496e8 Remove log translations
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: If4d80503845a14ebf3778cad36b6a21aac4eec54
2017-03-23 11:37:47 +08:00
Jenkins
c5631d75e4 Merge "Add filter "user_id" for receiver list" 2017-01-28 09:14:25 +00:00
miaohb
1c4ddad806 Add filter "user_id" for receiver list
This patch revises the help message of receiver list, to add the
filter "user_id".

Depends-On: Ic4c23e0216551a3707b49b9f8868c9aa41d76281,
            I096291a2860125681faee80d31be48f585996e7c,
            Ia33a0df2909ba93a66ac61f3b729671933aae9fa
Change-Id: Ief2a928cec82f9a0adf1be7a4fcbecd0220ae17f
Partial-Bug: #1653613
2017-01-06 11:49:03 +08:00
miaohb
a834bf97e3 Add user_id in receiver list
This patch adds the "user_id" column in receiver list.

Change-Id: Ic6a635cc652e4a7356cdd5984099e0c174f330fc
Closes-Bug: #1653579
2017-01-03 14:32:32 +08:00
zhangyanxian
7a3a3f08d3 Fix import method to follow community guideline
Instead of "from i18n import _ 
            from i18n import _LE"
this style "from i18n import _, _LE" is recommended as community guideline [1].
[1]http://docs.openstack.org/developer/hacking/#real-world-import-order-examples

Change-Id: I34636afad831522e0781a5e48c5a25e960a04ff5
2016-12-02 03:07:53 +00:00
Jenkins
7c05b0c7d1 Merge "Show project_id field when xyz-list with global-project" 2016-11-22 02:34:03 +00:00
lvdongbing
3940b7df38 Show project_id field when xyz-list with global-project
Change-Id: I1a3b6d607e9c70eaf7f5fa10ee3a802ca720b279
2016-10-26 22:44:29 -04:00
jonnary
ed4b2905cb All dictionary options need be a string
All dictionary options need be a string, otherwise only the first
"key: value" valids.

Change-Id: I17802a362b0e78f2d9a5a4930472704f76510fd6
2016-10-26 09:18:41 -07:00
jonnary
b93c882d82 Add receiver type instruction
Users can't know which type can be used.
Add "Receiver type can be "webhook" or "message". Default to "webhook"."

Change-Id: If4ec21f2775d7bbaa52f6c3a7a3e4412492a7776
2016-10-24 08:33:01 +00:00
jonnary
c3dab67843 Modify several marker's help
keep marker's help consistency

Change-Id: Id5c1d862f5d898e2cff5b94569c7ce8845b4d6a7
2016-10-16 03:50:21 +00:00
yanyanhu
9c9e053f81 Fix receiver list
Receiver list doesn't work for cluster_id of receiver
could be None now. This patch fixes it.

Change-Id: If0eb5af896d8482cb819597988b6ef0dc6e16e09
2016-09-05 23:50:43 -04:00
yanyanhu
473129aeea Revise params of 'receiver create' command
This patch revises 'receiver create' command to change 'cluster'
and 'action' parameters to optional for they are only required
for webhook receiver creation.

Change-Id: Ia1de29ef41c534569ab4e71e3457c97b1ce40003
2016-08-30 02:26:34 -04:00
Lu lei
7b83eec5b8 py3:Rmove six.iteritems/iterkeys in python-senlinclient
1、As mentioned in [1], we should avoid using six.iteritems/keys achieve
iterators. We can use dict.items/keys instead, as it will return iterators in
PY3 as well. And dict.items/keys will more readable.
2、In py2, the performance about list should be negligible, see the link [2].

[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html

Change-Id: I75d12f56821666ebaec8350acba3a5fc29957f1e
2016-08-24 14:12:35 +08:00
Ethan Lynn
a619b79c3b Reorder required parameters
This patch put required parameters to an visible position.

Change-Id: Ib68ab28c8f616d912b81ee38ec6325e087f6c648
2016-08-11 22:15:32 +08:00
Jenkins
3743dbc8b9 Merge "Update senlinclient for new sdk version" 2016-07-30 15:37:05 +00:00
tengqm
dd21b7aa0b Update senlinclient for new sdk version
This patch fixes problem found after sdk version 0.9.1 which includes a
new implementation of senlin cluster resources.

Change-Id: I67b265731f34080df85233dac09c1256f43aecdb
2016-07-29 02:15:56 -04:00
Tang Chen
4437ed83be Use osc_lib instead of cliff
Base classes of commands are defined in cliff,
but have been encapsulated again in osc-lib for
all plugin clients. So use osc-lib instead of
cliff.

Change-Id: I7b64c4dbedf270720f222471d57b9e20ab5a046c
2016-06-27 20:22:56 +08:00
Tang Chen
9891067bb0 Use osc-lib instead of openstackclient
osc-lib is a package of common support modules for writing
OSC plugins. All common functions, classes such as exceptions,
utils, logs and so on have been moved from openstackclient to
osc-lib.

So use osc-lib instead of openstackclient.

Change-Id: I94fceb763e7370596357db949f5e3eef091ee561
2016-06-24 11:58:04 +08:00
tengqm
735b018198 Refactor osc support
This patch refactors the OSC (OpenStackClient) support so that they are
moved out of a sub directory. We will use it as the 'default' CLI while
deprecating the previous shell.

Change-Id: I2553f0f38e5fa30735be63ab00dec4b3a4080ba5
2016-03-24 23:07:37 -04:00