From d132356cc361abef2d90d4073438f3ab759d5964 Mon Sep 17 00:00:00 2001 From: James Falcon Date: Mon, 19 Apr 2021 11:31:28 -0500 Subject: fix error on upgrade caused by new vendordata2 attributes (#869) In #777, we added 'vendordata2' and 'vendordata2_raw' attributes to the DataSource class, but didn't use the upgrade framework to deal with an unpickle after upgrade. This commit adds the necessary upgrade code. Additionally, added a smaller-scope upgrade test to our integration tests that will be run on every CI run so we catch these issues immediately in the future. LP: #1922739 --- tests/integration_tests/clouds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/integration_tests/clouds.py') diff --git a/tests/integration_tests/clouds.py b/tests/integration_tests/clouds.py index 11b57407..3bbccb44 100644 --- a/tests/integration_tests/clouds.py +++ b/tests/integration_tests/clouds.py @@ -111,14 +111,14 @@ class IntegrationCloud(ABC): # Even if we're using the default key, it may still have a # different name in the clouds, so we need to set it separately. self.cloud_instance.key_pair.name = settings.KEYPAIR_NAME - self._released_image_id = self._get_initial_image() + self.released_image_id = self._get_initial_image() self.snapshot_id = None @property def image_id(self): if self.snapshot_id: return self.snapshot_id - return self._released_image_id + return self.released_image_id def emit_settings_to_log(self) -> None: log.info( -- cgit v1.2.3