diff options
author | Haibin Huang <haibin.huang@intel.com> | 2018-12-17 20:17:06 +0800 |
---|---|---|
committer | Haibin Huang <haibin.huang@intel.com> | 2018-12-17 20:17:06 +0800 |
commit | e437f5ef84e17a07f1cde729f723c518076d5f73 (patch) | |
tree | f814ed8c48ac85cf39b5c3feb5660461cc030aa0 /pike | |
parent | b5252ab8719999c9ff0548e9d6e8950dbd2c3ac3 (diff) |
Fix extensions pep error
This patch is only fixing the pep8 issues under the extensions
folder for pike release, which is only triggerd by tox manually.
Change-Id: If31afe444d92812a7bc462e1c5d7749243e19051
Issue-ID: MULTICLOUD-428
Signed-off-by: Haibin Huang <haibin.huang@intel.com>
Diffstat (limited to 'pike')
-rw-r--r-- | pike/pike/extensions/__init__.py | 1 | ||||
-rw-r--r-- | pike/pike/extensions/tests/__init__.py | 1 | ||||
-rw-r--r-- | pike/pike/extensions/views/__init__.py | 1 | ||||
-rw-r--r-- | pike/pike/extensions/views/extensions.py | 9 |
4 files changed, 6 insertions, 6 deletions
diff --git a/pike/pike/extensions/__init__.py b/pike/pike/extensions/__init__.py index afa702d3..ae1ce9db 100644 --- a/pike/pike/extensions/__init__.py +++ b/pike/pike/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/pike/pike/extensions/tests/__init__.py b/pike/pike/extensions/tests/__init__.py index afa702d3..ae1ce9db 100644 --- a/pike/pike/extensions/tests/__init__.py +++ b/pike/pike/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/pike/pike/extensions/views/__init__.py b/pike/pike/extensions/views/__init__.py index afa702d3..ae1ce9db 100644 --- a/pike/pike/extensions/views/__init__.py +++ b/pike/pike/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/pike/pike/extensions/views/extensions.py b/pike/pike/extensions/views/extensions.py index 75569377..767b0b97 100644 --- a/pike/pike/extensions/views/extensions.py +++ b/pike/pike/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,20 +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._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) |