15 Commits

Author SHA1 Message Date
Jenkins
19d3064467 Merge "The output of action list filtered by "target" returns empty" 2016-11-22 02:34:50 +00:00
jonnary
86376d95df Support "global_project" arguments for action-list
In python-openstacksdk, senlin-api,senlin-engine layers,
"global_project" option has been support for action-list.
But in senlin client and db layer this hasn't been supported.
This patch Add "global_project" arguments for action-list in
senlinclient.

Depends-On: I064422a2b7058a1353206ab0978fe8ce0bffd732
Change-Id: Iaae58e8121e20789d072d5acbe28921ec255a8e0
2016-11-19 10:03:56 +00:00
miaohb
b369b45aa1 The output of action list filtered by "target" returns empty
Only full id can get correct result, we'd better notice it.

Change-Id: I571555ce583ccd2fe46a160ce46670fc291b4116
Closed-Bug: 1642871
2016-11-18 17:23:46 +08: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
b781e959cc Rework take_action function in class ListAction
Rework take_action's "full_id" handling.

Change-Id: Id8797f9dde0c77901e6fa39c0083e5cee6090894
2016-10-19 13:15:37 +00:00
miaohb
8cc622347f Fix error in "action list"
modify formatters from "target" to "target_id"
Closed-Bug: 1629171

Change-Id: I97d91c33e1db99fe44454be9344182c16f08f22a
2016-10-18 14:34:53 +08:00
jonnary
25de942b65 action-list's given id not event id
action-list's given id need action id.

Change-Id: Idd5d9761cd94f16da264cff801d0e4381be49abd
2016-10-10 08:06:04 +00:00
miaohb
1d6199bac1 Fix error in action list
Related-Bug: 1625419
Action list can not display the "target" column

Change-Id: I45e6f28475da953fa9d84ba05149fb8c2c8106ca
2016-09-20 10:47:22 +08:00
jonnary
80babc4860 Fix openstack cluster action list bug
Before this patch, `openstack cluster action list` can't list actions.
Also, find a action's anohter problem in senlin server code.
I will report and fix atcion's server bug  tomorrow.

Change-Id: Id6796e53a6875f82e4ab7bc3da6519a2eab272aa
2016-09-12 21:14:54 +08: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
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