summaryrefslogtreecommitdiff
path: root/trove/network
diff options
context:
space:
mode:
authorSushil Kumar <sushil.kumar3@hp.com>2015-05-20 19:53:12 +0000
committerSushil Kumar <sushil.kumar3@hp.com>2015-05-29 07:27:59 +0000
commit843bb0cd53f6cc3caa9beeb8f07a374943d01889 (patch)
tree1d3669e320affdd4f59cd88c404ef420b1e0cfd4 /trove/network
parent0f3d24254811906810552217cf05ed9409f415fc (diff)
downloadtrove-843bb0cd53f6cc3caa9beeb8f07a374943d01889.tar.gz
Fixes hacking rules
This patchset helps reducing the ignored pep8 errors. Fixed some ignored hacking rules, as listed follows: - E111 indentation is not a multiple of four - E122 continuation line missing indentation or outdented - E123 closing bracket does not match indentation of opening bracket's line - E128 continuation line under-indented for visual indent - E251 unexpected spaces around keyword / parameter equals - E265 block comment should start with '# ' - E713 test for membership should be 'not in' - H105 Don't use author tags - H306 imports not in alphabetical order Change-Id: Iadf2af4f6ec90420153ad63b5a41650392ef2cbd
Diffstat (limited to 'trove/network')
-rw-r--r--trove/network/neutron.py5
-rw-r--r--trove/network/nova.py3
2 files changed, 5 insertions, 3 deletions
diff --git a/trove/network/neutron.py b/trove/network/neutron.py
index b14e94fc..77396027 100644
--- a/trove/network/neutron.py
+++ b/trove/network/neutron.py
@@ -14,11 +14,12 @@
# under the License.
#
+from neutronclient.common import exceptions as neutron_exceptions
+
from trove.common import exception
from trove.common import remote
from trove.network import base
from trove.openstack.common import log as logging
-from neutronclient.common import exceptions as neutron_exceptions
LOG = logging.getLogger(__name__)
@@ -92,7 +93,7 @@ class NeutronDriver(base.NetworkDriver):
return self._convert_to_nova_security_group_rule_format(
secgroup_rule.get('security_group_rule', secgroup_rule))
except neutron_exceptions.NeutronClientException as e:
- # ignore error if rule already exists
+ # ignore error if rule already exists
if e.status_code == 409:
LOG.exception("secgroup rule already exists")
else:
diff --git a/trove/network/nova.py b/trove/network/nova.py
index b6f27653..d6baf479 100644
--- a/trove/network/nova.py
+++ b/trove/network/nova.py
@@ -14,11 +14,12 @@
# under the License.
#
+from novaclient import exceptions as nova_exceptions
+
from trove.common import exception
from trove.common import remote
from trove.network import base
from trove.openstack.common import log as logging
-from novaclient import exceptions as nova_exceptions
LOG = logging.getLogger(__name__)