diff options
author | Sushil Kumar <sushil.kumar3@hp.com> | 2015-05-20 20:13:02 +0000 |
---|---|---|
committer | Sushil Kumar <sushil.kumar3@hp.com> | 2015-05-26 08:58:51 +0000 |
commit | 025191af5068a853e527faeb826bd3fec40677ae (patch) | |
tree | 52673f01ece93d6c3581725e54ae0ad64ae91ae0 /troveclient/shell.py | |
parent | 82e05cb13a5cdd9c7a2accf07170eb26762d8879 (diff) | |
download | python-troveclient-025191af5068a853e527faeb826bd3fec40677ae.tar.gz |
Fixes new hacking rules1.2.0
Updated the hacking version as per global-requirements.
Fixed some of new appearing hacking rules, as listed follows:
- E128 continuation line under-indented for visual indent
- E265 block comment should start with '# '
- E713 test for membership should be 'not in'
- H238 old style class declaration, use new style (inherit from `object`)
Rules which are not yet fixed have been incorporated to ignorelist
- H405 Multi line docstrings should start with a one line summary
followed by an empty line
- H501 Do not use locals() or self.__dict__ for formatting strings
Change-Id: I885c6fa8ad0e6a98f7a8479f3441ed08ed2cbaa6
Diffstat (limited to 'troveclient/shell.py')
-rw-r--r-- | troveclient/shell.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/troveclient/shell.py b/troveclient/shell.py index abf8430..4034077 100644 --- a/troveclient/shell.py +++ b/troveclient/shell.py @@ -436,9 +436,9 @@ class OpenStackTroveShell(object): # V3 stuff project_info_provided = (self.options.os_tenant_name or self.options.os_tenant_id or - (self.options.os_project_name and - (self.options.os_project_domain_name or - self.options.os_project_domain_id)) or + (self.options.os_project_name and + (self.options.os_project_domain_name or + self.options.os_project_domain_id)) or self.options.os_project_id) if (not project_info_provided): |