summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--newton/newton/requests/tests/test_image.py4
-rw-r--r--share/common/msapi/helper.py3
2 files changed, 4 insertions, 3 deletions
diff --git a/newton/newton/requests/tests/test_image.py b/newton/newton/requests/tests/test_image.py
index c32ccd50..0a4f05c0 100644
--- a/newton/newton/requests/tests/test_image.py
+++ b/newton/newton/requests/tests/test_image.py
@@ -22,7 +22,7 @@ from rest_framework import status
from newton_base.tests import mock_info
from newton_base.tests import test_base
from newton_base.tests.test_base import AbstractTestResource
-from newton_base.openoapi.image import imageThread
+from newton_base.openoapi.image import ImageThread
from newton_base.util import VimDriverUtils
@@ -70,7 +70,7 @@ class TestImageNewton(unittest.TestCase, AbstractTestResource):
self.HTTP_not_found = status.HTTP_404_NOT_FOUND
- @mock.patch.object(imageThread, 'run')
+ @mock.patch.object(ImageThread, 'run')
@mock.patch.object(urllib, 'request')
@mock.patch.object(VimDriverUtils, 'get_session')
@mock.patch.object(VimDriverUtils, 'get_vim_info')
diff --git a/share/common/msapi/helper.py b/share/common/msapi/helper.py
index de8852c8..d45a7293 100644
--- a/share/common/msapi/helper.py
+++ b/share/common/msapi/helper.py
@@ -286,7 +286,8 @@ class MultiCloudThreadHelper(object):
# there is at least 1 copy of backlog item in either backlog or expired backlog
# self.lock.acquire()
backlogitem = self.backlog.get(backlog_id, None)
- self.owner.expired_backlog[backlog_id] = backlogitem
+ # self.owner.expired_backlog[backlog_id] = backlogitem
+ self.expired_backlog[backlog_id] = backlogitem
self.backlog.pop(backlog_id, None)
# self.lock.release()