diff options
Diffstat (limited to 'vio/vio/swagger/views/image/views.py')
-rw-r--r-- | vio/vio/swagger/views/image/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vio/vio/swagger/views/image/views.py b/vio/vio/swagger/views/image/views.py index 09f68eb..34e3ffa 100644 --- a/vio/vio/swagger/views/image/views.py +++ b/vio/vio/swagger/views/image/views.py @@ -261,7 +261,7 @@ class GetImageFileView(APIView): image_data = image_instance.download_vim_image(image) imagePath = req_body.get('imagePath') - if imagePath[-1:] is not '/': + if imagePath[-1:] != '/': imagePath += '/' file_name = "%s%s.%s" % (imagePath, image.name, image.disk_format) image_file = open(file_name, 'w+') |