2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[#3249] hammer fix

- hammer supported-systems works again
This commit is contained in:
Tomek Mrugalski
2024-02-09 13:46:54 +01:00
parent b29d95d530
commit f201707b85

View File

@@ -2762,19 +2762,18 @@ def parse_args():
def list_supported_systems():
"""List systems hammer can support (with supported providers)."""
for system, revisions_and_supported in SYSTEMS.items():
for system in SYSTEMS:
print('%s:' % system)
for r, supported in revisions_and_supported:
for release,supported in SYSTEMS[system].items():
if not supported:
continue
providers = []
for p in ['lxc', 'virtualbox']:
k = '%s-%s-%s' % (system, r, p)
k = '%s-%s-%s' % (system, release, p)
if k in IMAGE_TEMPLATES:
providers.append(p)
providers = ', '.join(providers)
print(' - %s: %s' % (r, providers))
print(' - %s: %s' % (release, providers))
def list_created_systems():
"""List VMs that are created on this host by Hammer."""