21 Commits

Author SHA1 Message Date
Dirk Mueller
dc5c33a9e5 Fix and enable Gating on H404
Enable gating on the Hacking H404 check - docstring
should start with a summary.

Change-Id: I80612a15bd11f689e9e9f4dc2ff812138630ddbd
2013-08-15 20:35:35 -07:00
Dirk Mueller
f2ad113d1c Fix and enable gating on H402
Docstring summaries need punctuation.

Change-Id: I1b740c13d5fedf9a625ca0807c908f651ee08406
2013-07-12 09:36:07 +02:00
Dirk Mueller
f695342683 Use Python 3.x compatible print syntax
Adding an extra pair of braces helps here to
let Python 3.x interpret it as print function,
while not confusing the Python 2.x print operator.

Change-Id: I05af267ecfbcc80753726743fdf82c330350afcb
2013-06-23 18:14:43 +02:00
Jenkins
3f40509751 Merge "Allow secure user password update." 2013-05-21 00:08:41 +00:00
Pradeep Kilambi
f2e0818bc9 Allow secure user password update.
This patch allows the ability for user password to be updated via
a command prompt so the password doesnt show up in the bash history.
The prompted password is asked twice to verify the match.
If user cntl-D's the prompt a message appears suggesting user to use
either of the options to update the password.

Fixes: bug#938315

Change-Id: I4271ae569b922f33c34f9b015a7ee6f760414e39
2013-05-20 14:02:16 -04:00
Dirk Mueller
2732fe098a Restore compatibility with PrettyTable < 0.7.2
PrettyTable 0.7.2 defaults to print a table even if
the resultset is empty. Restore previous behavior
to be in line with older prettytable releases.

Change-Id: Idd1d0c2c2f41966076517cbc8819ba9a5e097306
2013-04-29 11:25:19 +02:00
Ken'ichi Ohmichi
9351665062 Add name arguments to keystone command.
This patch adds name arguments to the following subcommands:
  * role-delete
  * role-get
  * service-delete
  * service-get
  * tenant-delete
  * tenant-get
  * tenant-update
  * user-delete
  * user-get
  * user-password-update
  * user-role-add
  * user-role-list
  * user-role-remove
  * user-update

Fixes bug 1100648

Change-Id: I73c08c0ba553a72ec57ff3a684a00be4ef1294a6
2013-01-17 18:11:27 +09:00
Masayuki Igawa
45ab2e8db7 Fix keystoneclient user-list output order
keystone user-list output is ordered by 'id' now.
But this order(by 'id') is not human-friendly. Sorting by 'name' is easy to
identify a user.

This patch fixes this problem.

Fixes bug 1073437

Change-Id: I00b1f46c248544157e09b2efccfff63a1f0426aa
2012-12-11 08:10:11 +09:00
Henry Nash
7920899af1 Add auth-token code to keystoneclient, along with supporting files
This step in the process duplicates the auth-token code to keystoneclient but,
for the moment, leaves a copy in its origional location in keystone.
Testing for auth-token is also copied across, as is the cms support file.

Although no other project will yet pick up the code here in the client, since
the paste.ini files haev not yet been updated, it would work if anyone
did reference it.

Once the client code is in, the next step is to update all the other
project paste files, and then finally retire the code from keystone.

Change-Id: I88853a373d406020d54b61cba5a5e887380e3b3e
2012-11-12 19:40:21 +00:00
Jenkins
338f64ff56 Merge "updating keystoneclient doc theme" 2012-10-01 20:40:30 +00:00
Joe Heck
0d48d1b6ce updating keystoneclient doc theme
adding in openstack theming
enabling last update from git
removing old manual references to API, converted entirely to autodoc
updated .gitignore
fixed docstring warnings and errors

Change-Id: Id22ddc446331d52cbf56c3462d8b532fc37f64ac
2012-10-01 17:47:34 +00:00
Joe Heck
6c127df0f3 pep8 1.3.1 cleanup
Change-Id: Ie4f3747b488829b4c05076bc02c377b5da939e10
2012-09-29 14:59:35 -07:00
Joe Gordon
33a0f73113 Add wrap option to keystone token-get for humans
When using Keystone PKI, a token ID can be over 3200 chars long.
Add optional --wrap option to make 'keystone token-get' human readable

fix bug 1053728

Change-Id: Ic3dffa773f9b8fc227a8fe7592a3d87e8e22e510
2012-09-25 10:35:04 -07:00
Dan Prince
11258a06c2 Don't call PrettyTable add_row with a tuple.
Updates the print_dict function in utils.py so that it doesn't
try to append a tuple with add_row. According to pydoc add_row
should get passed a list (not a tuple):

  Arguments:

    row - row of data, should be a list with as many elements as
    the table has fields

This fixes a TypeError which can occur with the existing code:

TypeError: can only concatenate list (not "tuple") to list

Fixes LP Bug #1019409.

Change-Id: I16f745afa872106c3bc44c33d88db2a5aacd776c
2012-06-29 16:32:32 -04:00
Vincent Untz
3813abcf20 Do not display None in pretty tables for fields with no value
Fields that are present but unset in a backend (like the email field for
a user created with no email in the KVS backend with the keystone
command line) will appear as "None" when listed, instead of as an empty
field.

Change-Id: I86dc0a204847518e61ba9f6f46d4637d897cfac1
2012-06-26 11:36:21 +02:00
Dean Troyer
418bc5e737 Remove printt
prettyprint 0.6 removed printt at the last minute, replace with get_string

Fixes bug 995811

Change-Id: Iaabe47c1ae9270d9d00f804388a1837767cb20f1
2012-05-07 10:14:26 -05:00
Zhongyue Luo
c8350b7a67 Backslash continuations (python-keystoneclient)
Fixes bug #940023

Backslash continuations removal for python-keystoneclient

Change-Id: I816fc39ced20bb8ba8a42d3f07a03da94a76f8ea
2012-03-17 01:08:58 +08:00
Dolph Mathews
5c223fb641 enabled treated as string (bug 953678)
Change-Id: I897797b3fb264647c486e6c10eab8edd00eadbcc
2012-03-14 10:28:09 -05:00
jakedahn
2a1c94a753 Improve usability of CLI.
* Fixes bug #936422
  * Fixes bug #932223
  * Depends on bcwaldon's review: https://review.openstack.org/#change,4305
  * This review proposes making changes outlined in this spreadsheet:
    https://docs.google.com/spreadsheet/ccc?key=0Ak6TA47h_6fwdGZwRE5WWEJBdEhnckpMTG5RcWFjY3c#gid=0
    This cleans up the CLI, normalizing commands and arguments, correcting
    optional and required arguments and flags.
  * included https://review.openstack.org/4270 here per Brian's request

  Note that some commands have changed names to conform to noun-verb form:
  user-update-password  ->  user-password-update
  add-user-role  ->  user-role-add
  remove-user-role  ->  user-role-remove
  ec2-create-credentials  ->  ec2-credentials-create
  ec2-list-credentials  ->  ec2-credentials-list
  ec2-delete-credentials  ->  ec2-credentials-delete
  token  ->  token-get

Change-Id: I8128fa105a1b8002199211f9e475b1a7a6229b8c
2012-02-23 16:28:38 -06:00
Ziad Sawalha
8db366c448 Support for version and extension discovery
- Supports unauthenticated call to Keystone to discover
  supported API versions
- Added command-line support (usage: keystone discover)
- Added client support (keystoneclient.genenric client).
  Client returns dicts, whereas shell command prints
  formated output.
- Added tests for genenric client
- Replicates 'nove discover' in python-novaclient
- Starts to address blueprint keystone-client
- keystone discover output looks like this:
    $ keystone discover
    Keystone found at http://localhost:35357
        - supports version v1.0 (DEPRECATED) here http://localhost:35357/v1.0
        - supports version v1.1 (CURRENT) here http://localhost:35357/v1.1
        - supports version v2.0 (BETA) here http://localhost:35357/v2.0
            - and HP-IDM: HP Token Validation Extension
            - and OS-KSADM: Openstack Keystone Admin
            - and OS-KSCATALOG: Openstack Keystone Catalog

Change-Id: Id16d34dac094c780d36afb3e31c98c318b6071ac
2012-01-20 12:14:02 -06:00
Gabriel Hurley
17f6b83ee6 Initial commit. 2011-10-25 16:50:08 -07:00