Commit Graph

17 Commits

Author SHA1 Message Date
Andrey Kurilin 0a60aae852 Rename v1_1 to v2
Module novaclient.v1_1 is used as implementation of V1.1, V2 and V3.
Since future development(microversioning) will be done across V2,
implementation should be done in appropriate module(to prevent misleading).

Despite the fact that implementation for all versions are equal, discover
method for contrib path worked only for v1.1. This patch fixes this bug and
modifies shell tests to check all versions.

Change-Id: Ib6798f4dfe177586302141f522dc593560ce6a5b
2015-02-04 17:40:46 +02:00
Christian Berendt c58bc211f7 In strings/comments change Ip/ip to IP
The correct short form of "Internet Protocol" is IP.

Change-Id: Ie5412fafbb093e0948970f030e443bed360c71ea
2015-01-17 08:53:26 +01:00
Andrey Kurilin 8de2237cc4 Enable check for E126
E126 continuation line over-indented for hanging indent

Change-Id: Id64edce8278d96c1b2d4a6ca536e9fc8fbef478c
2014-10-23 17:28:25 +03:00
Andrey Kurilin dc09cf27e3 Port to use oslo.i18n
Module gettextutils from oslo-incubator was graduated to separate
library (oslo.i18n) and removed from repository, so we should use
new library.

Change-Id: I15d36ac5a2bb88b332ffa38d29488b75c55a20a9
2014-10-16 01:19:48 +03:00
Sergio Cazzolato 6b070c82d4 Fix i18n messages in novaclient, part I
This change make all the text visible by the user i18n. The
messages changes are in prints, logs, exceptions, helps, etc
Pep8 errors about "Multiple positional placeholders" also fixed

Change-Id: I731afea790baddbc34d059b93a35e3d275fc1df8
2014-01-28 14:56:00 -05:00
Jenkins 986d700c55 Merge "Cleanup nova subcommands for security groups and rules" 2013-05-21 07:56:30 +00:00
Shane Wang b1802a59bb Cleanup nova subcommands for security groups and rules
The Changes include:
  - Sanity check for from_port, to_port, and IP protocol when adding
    a security rule
  - Print one more column 'Id' for security groups
  - If there are multiple security groups with the same name, the group
    can't be deleted unless an ID is specified. However, there is no code
    to search and delete security group by ID. So, _get_secgroup() will
    get group by ID if the input is like a UUID. If not found, then get
    group by name.
  - Some corresponding changes for help messages.
  - Test case changes after adding sanity check.

Change-Id: Ibd82d8404bdd64e4bca2f8b25756bfaff7b28194
Signed-off-by: Shane Wang <shane.wang@intel.com>
2013-05-18 20:16:21 +08:00
Alessio Ababilov c9fc9b5b8f Make ManagerWithFind abstract and fix its descendants
ManagerWithFind requires list() method in its descendants.
Make it abstract and fix its improper descendants that do
not implement list() (SecurityGroupRuleManager and many others).

Fixes: bug #1180393
Change-Id: Ic8b466a57554018092c31c6d6b3ea62f181d7000
2013-05-15 21:47:05 +03:00
Davanum Srinivas c5b579926f Fix Copyright Headers from LLC to Foundation
follow the lead from nova and oslo projects

Change-Id: I270c5f1e4eefa4b72e292bfb4a4c60de0c3f6e4a
2013-03-13 20:12:23 -04:00
François Charlier d18954f4a8 Add missing returns and remove superfluous ones
Some methods which should have returned  objects dit not return and some
methods which don't  return anything used return ... Fixed  all that and
added tests to detect two returns which were missing.

Fixes bug 892058

Change-Id: If59468cfe1c7b1ab74ed0bfc6f81590dfd5dd668
2011-12-30 17:40:02 +01:00
Anthony Young 38da8b4e85 make __repr__ more useful with default behavior, rather than juse displaying id 2011-08-24 20:29:35 -07:00
Jesse Andrews 2cb86c56d1 pep8 issues 2011-08-13 16:06:50 -07:00
Dean Troyer 9c17fad86d Switch API path to match http://bazaar.launchpad.net/~tpatil/nova/os-security-groups/revision/1369 2011-08-12 10:38:10 -05:00
Dean Troyer a6f08974a1 Fix API path 2011-08-12 10:02:54 -05:00
Dean Troyer 9070f3231f Security groups cleanups 2011-08-11 16:07:20 -05:00
Dean Troyer e7fdf8c98f Clean up id handling and pass basic tests 2011-08-10 17:20:21 -05:00
Dean Troyer ecdd2fcef6 Add security group rules 2011-08-10 14:55:50 -05:00