diff options
Diffstat (limited to 'newton/newton/extensions/views/epacaps.py')
-rw-r--r-- | newton/newton/extensions/views/epacaps.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/newton/newton/extensions/views/epacaps.py b/newton/newton/extensions/views/epacaps.py index 54bd0ebe..e41d16c2 100644 --- a/newton/newton/extensions/views/epacaps.py +++ b/newton/newton/extensions/views/epacaps.py @@ -11,12 +11,11 @@ # 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 logging import json import traceback -from django.core.cache import cache - from keystoneauth1.exceptions import HttpError from rest_framework import status from rest_framework.response import Response @@ -29,8 +28,6 @@ from newton.pub.msapi import extsys logger = logging.getLogger(__name__) -DEBUG=True - class EpaCaps(APIView): @@ -55,7 +52,6 @@ class EpaCaps(APIView): "cloud-epa-caps": caps_json, } return Response(data=content, status=status.HTTP_200_OK) - #return resp except VimDriverNewtonException as e: return Response(data={'error': e.content}, status=e.status_code) except HttpError as e: |