summaryrefslogtreecommitdiffstats
path: root/res/res
diff options
context:
space:
mode:
Diffstat (limited to 'res/res')
-rw-r--r--res/res/pub/config/config.py2
-rw-r--r--res/res/pub/database/models.py7
-rw-r--r--res/res/resources/tests.py4
-rw-r--r--res/res/resources/urls.py1
-rw-r--r--res/res/resources/views.py5
-rw-r--r--res/res/settings.py1
-rw-r--r--res/res/urls.py1
7 files changed, 14 insertions, 7 deletions
diff --git a/res/res/pub/config/config.py b/res/res/pub/config/config.py
index 86701be..6c06553 100644
--- a/res/res/pub/config/config.py
+++ b/res/res/pub/config/config.py
@@ -11,6 +11,8 @@
# 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.
+
+
import os
# [MSB]
diff --git a/res/res/pub/database/models.py b/res/res/pub/database/models.py
index c701e20..af794b7 100644
--- a/res/res/pub/database/models.py
+++ b/res/res/pub/database/models.py
@@ -11,6 +11,8 @@
# 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.
+
+
from django.db import models
@@ -311,8 +313,3 @@ class FlavourInstModel(models.Model):
def __unicode__(self):
return '%s' % self.name
-
-
-
-
-
diff --git a/res/res/resources/tests.py b/res/res/resources/tests.py
index 4bddc71..7211b81 100644
--- a/res/res/resources/tests.py
+++ b/res/res/resources/tests.py
@@ -11,6 +11,8 @@
# 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.
+
+
from django.test import TestCase, Client
from rest_framework import status
@@ -212,4 +214,4 @@ class ResourceTest(TestCase):
def test_swagger_ok(self):
resp = self.client.get("/api/vnfres/v1/swagger.json", format='json')
- self.assertEqual(resp.status_code, status.HTTP_200_OK, resp.content) \ No newline at end of file
+ self.assertEqual(resp.status_code, status.HTTP_200_OK, resp.content)
diff --git a/res/res/resources/urls.py b/res/res/resources/urls.py
index b855a60..5920115 100644
--- a/res/res/resources/urls.py
+++ b/res/res/resources/urls.py
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+
from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
diff --git a/res/res/resources/views.py b/res/res/resources/views.py
index 38de8e1..8171c5c 100644
--- a/res/res/resources/views.py
+++ b/res/res/resources/views.py
@@ -11,6 +11,8 @@
# 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.
+
+
import json
import logging
import os
@@ -340,6 +342,7 @@ def fill_cps_data(cp):
}
return cps_data
+
@api_view(http_method_names=['GET'])
def get_volumes(request, *args, **kwargs):
logger.debug("Query all the volumes by vnfInstanceId[%s]", fun_name())
@@ -376,4 +379,4 @@ class SwaggerJsonView(APIView):
f = open(json_file)
json_data = json.JSONDecoder().decode(f.read())
f.close()
- return Response(json_data) \ No newline at end of file
+ return Response(json_data)
diff --git a/res/res/settings.py b/res/res/settings.py
index 6b19ab5..e7de314 100644
--- a/res/res/settings.py
+++ b/res/res/settings.py
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+
import os
import sys
diff --git a/res/res/urls.py b/res/res/urls.py
index 9db7895..29cdac7 100644
--- a/res/res/urls.py
+++ b/res/res/urls.py
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+
from django.conf.urls import include, url
from res.pub.config.config import REG_TO_MSB_WHEN_START, REG_TO_MSB_REG_URL, REG_TO_MSB_REG_PARAM