21 Commits

Author SHA1 Message Date
Andreas Jaeger
ca870810c9 Use oslo.utils
Replace usage of oslo-incubator modules strutils, importutils, timeutils
with corresponding oslo.utils modules instead.
Removes timeutils module, others will be replaced with next oslo-incubator sync.

Change-Id: I12530f4e4d745f9a95b339182e31189e32e56fa6
2014-10-23 08:13:25 +02:00
Your Name
5e71ffc159 Handle ambiguous option error for aliases properly
When we have more than one alias for one command option, like
"manila list [--snapshot_id %id%][--snapshot-id %id%]"

We should be ok provided request like following:
"manila list --snapshot %id%"

This change makes above possible.

Also added restriction to use only one alias at a time.

Change-Id: Ibd7de3b75408d50ff97b5b9d19307a5612d7b425
Closes-Bug: #1379472
2014-10-09 19:01:55 +00:00
Andreas Jaeger
542b59e891 Improve help strings
Make help strings consistent, following oslo.config recommendations:
* Capitalize properly
* Fix grammar and language
* Add "." at end of help string

Change-Id: I412eca2ee67c5e6152f0a70b2a5073ebd190796d
2014-08-22 19:20:43 +02:00
vponomaryov
4a7e7cf089 Cleanup manilaclient.utils module (part 2)
Remove functions 'arg', 'env' and 'add_arg' from
manilaclient.utils and use same functions from cliutils instead.

Partially implements: blueprint use-common-code

Change-Id: Ib41250d527c5949cdfb7c6956703ff4b371a062b
2014-08-04 11:06:28 -04:00
vponomaryov
b11f5d78a2 Cleanup manilaclient.utils module (part 1)
First part of manilaclient.utils module cleanup,
where usage of deleted functions replaced with functions
from common code.

Partially implements: blueprint use-common-code

Change-Id: Iefe7da601cdaf030787c6d7588dd0c1706e309cd
2014-08-04 10:52:10 -04:00
vponomaryov
900b660618 Fix and enable E12 pep8 rule (indentation issues)
Change-Id: I500d2cacba09f2a4337ff325ae658f61b64e4b7a
Related-Bug: #1333290
2014-07-10 05:22:37 -04:00
Julia Varlamova
02fb7a62d1 Add an ability to cache auth token
Add option --os-cache, which defaults to OS_CACHE variable
(by default - False). When this option is specified, manilaclient
will use auth token saved in keyring. First time when command will
be called, auth token and user password will be saved in keyring.
Using --os-reset-cache option password and auth_token stored in the
keyring can be deleted.

Implements bp cache-auth-token

Change-Id: Ia8959655528acce726baa616e66901c7a96fd35c
2014-07-07 17:22:28 +04:00
vponomaryov
0ccdb38dd2 Remove py33 incompatibilities
Except py33 compatibility changes were added unittests
to cover changed code.

Partially-implements blueprint py3-compatibility
Change-Id: Ib51e02ec69100a842ea1092e9f659ab1ebede671
2014-06-28 06:09:55 +00:00
Valeriy Ponomaryov
dc1926e9ad Enable H23* rules in pep/flake (py3-compat)
Basic python 3 compatibility fixies

Change-Id: I97726d42706c538d40cb1662112e56c13432e87f
Related-Bug: #1333290
2014-06-28 06:07:02 +00:00
Valeriy Ponomaryov
493ec0a538 Enable H30* rules in pep/flake
Second part of pep/flake fixies, that enables H30* group of rules.

Change-Id: Ib481887a37633a72dd5691c716b9214900a9384b
Related-Bug: #1333290
2014-06-28 06:06:50 +00:00
Valeriy Ponomaryov
b87c55d5fc Enable H40* rules in pep/flake
First part of pep/flake fixies, that enables H40* group of rules.

Change-Id: Ia85b49645b3bf634e99877855e6b31a404331b7f
Related-Bug: #1333290
2014-06-28 08:48:32 +03:00
Yulia Portnova
00ccdd3831 Added detail parameter to list methods
Added detail parameter to list methods for security_services
and share_networks in v1.
Closes-bug #1297824

Change-Id: Iac2384bbf69c18f75291cc58509e8e99d0ac93ff
2014-04-01 14:58:01 +03:00
Andrei V. Ostapenko
e5562354e4 Added support of per-tenant-user quotas
Added new keys '--user' in v1.shell to quota-show, quota-update.
Added command quota-delete, that provides ability for admins
to be able to delete a non-default quota (absolute limit) for a tenant
or user, so that tenant's quota will revert back to the configured default.
Added 'responce_key' parameter to Manager._update function
Added '--force' parameter to quota-update to support new functionality
on server
Fixes help output, when in 'manila help' was displayed only first
string of command documentation

Implement bp: user-quota-support

Change-Id: Ibfe9ccf83ea43d5af6652342f1fe6a88c78a0364
2013-10-17 17:31:21 +03:00
Andrei V. Ostapenko
eae1a991c9 Removes deprecated global opts from python-manilaclient/shell.py
Closes-Bug: #1237407

Change-Id: If4054d4363c5ead5a707b9b17b194c26399c0be0
2013-10-09 16:35:45 +03:00
Yulia Portnova
95c64adea3 merged cinder-to-manila 2013-09-17 16:41:56 +03:00
119Vik
d6204d90bb added testr conf. pep8 tests fixed 2013-09-10 09:09:53 -04:00
vik
041bfa455c cleaned client with fixed tests. no quotas functionality implemented 2013-09-10 03:26:11 -04:00
Yulia Portnova
77dffa2c99 mass replace cinder to manila 2013-09-05 13:32:38 +03:00
Yulia Portnova
2d2bedf6b0 fixed service type 2013-09-05 13:14:29 +03:00
Yulia Portnova
fa125b7714 setup.py fixed 2013-09-03 14:37:34 +03:00
Yulia Portnova
7c1a8bcbef cinderclient to manilaclient 2013-09-03 14:28:38 +03:00