diff options
Diffstat (limited to 'newton/newton/requests/views/vport.py')
-rw-r--r-- | newton/newton/requests/views/vport.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/newton/newton/requests/views/vport.py b/newton/newton/requests/views/vport.py index 17f8e83a..18af5092 100644 --- a/newton/newton/requests/views/vport.py +++ b/newton/newton/requests/views/vport.py @@ -115,7 +115,6 @@ class Vports(APIView): if port["name"] == request.data["name"]: existed = True break - pass if existed == True: vim_dict = { "returnCode": 0, @@ -201,4 +200,3 @@ class Vports(APIView): logger.error(traceback.format_exc()) return Response(data={'error': str(e)}, status=status.HTTP_500_INTERNAL_SERVER_ERROR) - pass |