Fixup hostname string formatting

This commit is contained in:
James Page
2019-01-28 16:40:48 +00:00
parent a5b95bb12c
commit 733fe2e600

View File

@@ -546,8 +546,10 @@ class CephRGWDaemonTest(test_utils.OpenStackBaseTest):
if current_release >= xenial_mitaka:
result = zaza_model.run_on_unit(unit.entity_id, 'hostname')
hostname = result['Stdout'].rstrip()
services = ['ceph-radosgw@rgw.{hostname}'.format(hostname),
'haproxy']
services = [
'ceph-radosgw@rgw.{hostname}'.format(hostname=hostname),
'haproxy'
]
else:
services = ['radosgw', 'haproxy']
zaza_model.block_until_service_status(