From ecb47bfa4fa223b811511be94e748a5728a19cd9 Mon Sep 17 00:00:00 2001 From: James Page Date: Fri, 3 Jul 2020 10:59:39 +0100 Subject: [PATCH] Fix lint --- .../openstack/charm_tests/glance_simplestreams_sync/tests.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/zaza/openstack/charm_tests/glance_simplestreams_sync/tests.py b/zaza/openstack/charm_tests/glance_simplestreams_sync/tests.py index b5947a3..0c0d472 100644 --- a/zaza/openstack/charm_tests/glance_simplestreams_sync/tests.py +++ b/zaza/openstack/charm_tests/glance_simplestreams_sync/tests.py @@ -97,10 +97,6 @@ class GlanceSimpleStreamsSyncTest(test_utils.OpenStackBaseTest): 'com.ubuntu.cloud:server:20.04:amd64', ] uri = "streams/v1/auto.sync.json" - key = "url" - xenial_pike = openstack_utils.get_os_release('xenial_pike') - if openstack_utils.get_os_release() <= xenial_pike: - key = "publicURL" # There is a race between the images being available in glance and the # metadata being written for each image. Use tenacity to avoid this @@ -113,7 +109,6 @@ class GlanceSimpleStreamsSyncTest(test_utils.OpenStackBaseTest): stop=tenacity.stop_after_attempt(25)) def _check_local_product_streams(expected_images): # Refresh from catalog as URL may change if swift in use. - catalog = self.keystone_client.service_catalog.get_endpoints() ps_interface = self.keystone_client.service_catalog.url_for( service_type='product-streams', interface='publicURL' )