diff --git a/nova_powervm/tests/virt/powervm/test_image.py b/nova_powervm/tests/virt/powervm/test_image.py index 9c0c56bf..c5d963b5 100644 --- a/nova_powervm/tests/virt/powervm/test_image.py +++ b/nova_powervm/tests/virt/powervm/test_image.py @@ -51,7 +51,6 @@ class TestImage(test.NoDBTestCase): mock_api.get.assert_called_with('context', 'image_id') self.assertEqual({ 'name': 'image_name', - 'is_public': False, 'status': 'active', 'disk_format': 'raw', 'container_format': 'bare', diff --git a/nova_powervm/virt/powervm/image.py b/nova_powervm/virt/powervm/image.py index 289d9d3e..ebcabe6b 100644 --- a/nova_powervm/virt/powervm/image.py +++ b/nova_powervm/virt/powervm/image.py @@ -56,10 +56,10 @@ def generate_snapshot_metadata(context, image_api, image_id, instance): :param instance: The Nova instance whose disk is to be snapshotted. :return: A dict of metadata suitable for image_api.update. """ + # TODO(esberglu): Update this to v2 metadata image = image_api.get(context, image_id) metadata = { 'name': image['name'], - 'is_public': False, 'status': 'active', 'disk_format': 'raw', 'container_format': 'bare',