Merge pull request #187 from TMaddox/upstream-stable-4
store image_type from nova notifications
This commit is contained in:
commit
4eaede1637
@ -249,6 +249,7 @@ class NovaNotification(Notification):
|
||||
host=self.host,
|
||||
instance=self.instance,
|
||||
request_id=self.request_id,
|
||||
image_type=self.image_type,
|
||||
state=self.state,
|
||||
old_state=self.old_state,
|
||||
task=self.task,
|
||||
|
@ -29,6 +29,7 @@ from stacktach.notification import Notification
|
||||
from stacktach.notification import NovaNotification
|
||||
from stacktach.notification import GlanceNotification
|
||||
from stacktach import db
|
||||
from stacktach import image_type
|
||||
from tests.unit import StacktachBaseTestCase
|
||||
from tests.unit.utils import REQUEST_ID_1
|
||||
from tests.unit.utils import DECIMAL_DUMMY_TIME
|
||||
@ -135,6 +136,7 @@ class NovaNotificationTestCase(StacktachBaseTestCase):
|
||||
host="global.preprod-ord.ohthree.com",
|
||||
instance=INSTANCE_ID_1,
|
||||
request_id=REQUEST_ID_1,
|
||||
image_type=image_type.get_numeric_code(body['payload']),
|
||||
old_state='old_state',
|
||||
old_task='old_task',
|
||||
os_architecture='os_arch',
|
||||
|
Loading…
x
Reference in New Issue
Block a user