]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix syntax error in credential.py and missing __init__.py
authorAaron Rosen <arosen@nicira.com>
Wed, 6 Mar 2013 01:48:35 +0000 (17:48 -0800)
committerAaron Rosen <arosen@nicira.com>
Wed, 6 Mar 2013 01:52:07 +0000 (17:52 -0800)
This patch fixes a syntax error in credential.py and resolves
the following import error:

In [1]: from quantum.plugins.cisco.extensions import _credential_view as a
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/opt/stack/quantum/<ipython-input-1-ef3f11a361d0> in <module>()
----> 1 from quantum.plugins.cisco.extensions import _credential_view as a

Fixes bug 1148133

Change-Id: I22bc7152fcfec6fdc9f2638bc92d2fb1db99a484

quantum/plugins/cisco/extensions/__init__.py [new file with mode: 0644]
quantum/plugins/cisco/extensions/credential.py

diff --git a/quantum/plugins/cisco/extensions/__init__.py b/quantum/plugins/cisco/extensions/__init__.py
new file mode 100644 (file)
index 0000000..fcab2ee
--- /dev/null
@@ -0,0 +1,16 @@
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
+# Copyright 2013 OpenStack LLC.
+# All Rights Reserved
+#
+#    Licensed under the Apache License, Version 2.0 (the "License"); you may
+#    not use this file except in compliance with the License. You may obtain
+#    a copy of the License at
+#
+#         http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+#    License for the specific language governing permissions and limitations
+#    under the License.
index 15b4b367b8179b2e47aa73c11f9fa56b715854af..2bf56a2d5df47076f7ab27a55c4b473c8b300ffe 100644 (file)
@@ -25,8 +25,8 @@ from quantum.api import extensions
 from quantum.manager import QuantumManager
 from quantum.plugins.cisco.common import cisco_exceptions as exception
 from quantum.plugins.cisco.common import cisco_faults as faults
-(from quantum.plugins.cisco.extensions import _credential_view as
-    credential_view)
+from quantum.plugins.cisco.extensions import (_credential_view as
+                                              credential_view)
 from quantum import wsgi