2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-21 16:39:32 +00:00

Fix imgutil crash without arg

This commit is contained in:
Markus Hilger
2026-07-09 18:33:08 +02:00
parent 7633bac055
commit 5945e8f22d
+5 -4
View File
@@ -957,16 +957,17 @@ def run_constrained(function, args):
def main():
if sys.argv[1] == 'getfingerprint':
firstarg = sys.argv[1] if len(sys.argv) > 1 else None
if firstarg == 'getfingerprint':
print(fingerprint_host(None).get_json())
return
elif sys.argv[1] == 'capturelocal':
elif firstarg == 'capturelocal':
capture_system()
return
elif sys.argv[1] == 'capturelocalboot':
elif firstarg == 'capturelocalboot':
build_boot_tree('/run/imgutil/capout')
return
elif sys.argv[1] == 'capturelocalcleanup':
elif firstarg == 'capturelocalcleanup':
capture_local_cleanup()
return
parser = argparse.ArgumentParser(description='Work with confluent OS cloning and diskless images')