summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaibin Huang <haibin.huang@intel.com>2019-01-15 10:47:33 +0800
committerHaibin Huang <haibin.huang@intel.com>2019-01-15 10:54:08 +0800
commitfada10352ff098d7e5b844b8c48aec08929d7820 (patch)
tree0f8cd63bd56031cd445d602c77333e7099890d48
parent9ab632189196dec9c9c0bd9b9207b6ed21e71328 (diff)
Fix extensions pep8 error for ocata
This patch is only fixing the pep8 issues under the extensions folder for ocata release, which is only triggered by tox mannually. Change-Id: If756317cb00f821f1f1312d36e6a427f05a7f4eb Issue-ID: MULTICLOUD-434 Signed-off-by: Haibin Huang <haibin.huang@intel.com>
-rw-r--r--ocata/ocata/extensions/__init__.py1
-rw-r--r--ocata/ocata/extensions/tests/__init__.py1
-rw-r--r--ocata/ocata/extensions/views/__init__.py1
-rw-r--r--ocata/ocata/extensions/views/extensions.py8
4 files changed, 5 insertions, 6 deletions
diff --git a/ocata/ocata/extensions/__init__.py b/ocata/ocata/extensions/__init__.py
index afa702d3..ae1ce9db 100644
--- a/ocata/ocata/extensions/__init__.py
+++ b/ocata/ocata/extensions/__init__.py
@@ -11,4 +11,3 @@
# 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.
-
diff --git a/ocata/ocata/extensions/tests/__init__.py b/ocata/ocata/extensions/tests/__init__.py
index afa702d3..ae1ce9db 100644
--- a/ocata/ocata/extensions/tests/__init__.py
+++ b/ocata/ocata/extensions/tests/__init__.py
@@ -11,4 +11,3 @@
# 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.
-
diff --git a/ocata/ocata/extensions/views/__init__.py b/ocata/ocata/extensions/views/__init__.py
index afa702d3..ae1ce9db 100644
--- a/ocata/ocata/extensions/views/__init__.py
+++ b/ocata/ocata/extensions/views/__init__.py
@@ -11,4 +11,3 @@
# 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.
-
diff --git a/ocata/ocata/extensions/views/extensions.py b/ocata/ocata/extensions/views/extensions.py
index bd90a119..767b0b97 100644
--- a/ocata/ocata/extensions/views/extensions.py
+++ b/ocata/ocata/extensions/views/extensions.py
@@ -14,6 +14,7 @@
import logging
+from common.msapi import extsys
from django.conf import settings
from newton_base.extensions import extensions as newton_extensions
@@ -21,21 +22,22 @@ logger = logging.getLogger(__name__)
# DEBUG=True
+
class Extensions(newton_extensions.Extensions):
def __init__(self):
self._logger = logger
self.proxy_prefix = settings.MULTICLOUD_PREFIX
+
class APIv1Extensions(Extensions):
def __init__(self):
self._logger = logger
self.proxy_prefix = settings.MULTICLOUD_API_V1_PREFIX
-
def get(self, request, cloud_owner="", cloud_region_id=""):
- self._logger.info("cloud_owner,cloud_region_id: %s,%s" % (cloud_owner,cloud_region_id))
+ self._logger.info("cloud_owner,cloud_region_id: %s,%s" % (cloud_owner, cloud_region_id))
vimid = extsys.encode_vim_id(cloud_owner, cloud_region_id)
- return super(APIv1Extensions,self).get(request, vimid)
+ return super(APIv1Extensions, self).get(request, vimid)