diff options
| author | Denis Makogon <dmakogon@mirantis.com> | 2013-12-10 18:49:20 +0200 |
|---|---|---|
| committer | Denis Makogon <dmakogon@mirantis.com> | 2013-12-10 18:49:20 +0200 |
| commit | 69c865695f388141bcbf645e57771bcb3fcdb491 (patch) | |
| tree | 50cb616ebc6fefda52a6efd96141dcacc4ea2110 /troveclient/v1/hosts.py | |
| parent | 7499015e510fbd8f900581fabafdc586b097ab3c (diff) | |
| download | python-troveclient-69c865695f388141bcbf645e57771bcb3fcdb491.tar.gz | |
Ignore fewer PEP8/flake8 rules
Reasons:
- code should be pythonicaly clean,
that is why number of ignored rules should reduced
Changes:
- E125, F811, H102, H103, F201, H23,
H302, F841, H301, H702, H703 rules are now enabled
Change-Id: Ibf4025162244d3c2f1278b49a76ec1527a729042
Diffstat (limited to 'troveclient/v1/hosts.py')
| -rw-r--r-- | troveclient/v1/hosts.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/troveclient/v1/hosts.py b/troveclient/v1/hosts.py index 8a3e583..9889799 100644 --- a/troveclient/v1/hosts.py +++ b/troveclient/v1/hosts.py @@ -17,8 +17,7 @@ # under the License. from troveclient import base - -from troveclient.common import check_for_exceptions +from troveclient import common class Host(base.Resource): @@ -47,7 +46,7 @@ class Hosts(base.ManagerWithFind): """ url = "/mgmt/hosts/%s/instances/action" % host_id resp, body = self.api.client.post(url, body=body) - check_for_exceptions(resp, body) + common.check_for_exceptions(resp, body) def update_all(self, host_id): """ |
