From 62651f48e1cf7e2be44bc8f19ca259a6bb65dee7 Mon Sep 17 00:00:00 2001 From: Palollo Date: Fri, 17 Oct 2025 12:11:24 +0200 Subject: [PATCH] Adjust update command When no (optional) arguments were included the command did nothing but a reconfigure, and there is already the command "reconfigure" for that. It is expected to update (reload) at least the templates when no arguments are included. --- ec3 | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ec3 b/ec3 index 1339ef4..4b9c242 100755 --- a/ec3 +++ b/ec3 @@ -1829,13 +1829,10 @@ class CmdUpdate: sys.exit(1) # Instantiate templates - if options.auth_file or options.add: - templates = r.get(system("front")).getValue("ec3_templates_cmd", "").split(" ") - radl = CmdLaunch.generate_radl(templates, options.add if options.add else [], auth_content) - for a in radl.gets(deploy): radl.delete(a) - radl = dump_radl(radl) - else: - radl = "" + templates = r.get(system("front")).getValue("ec3_templates_cmd", "").split(" ") + radl = CmdLaunch.generate_radl(templates, options.add if options.add else [], auth_content) + for a in radl.gets(deploy): radl.delete(a) + radl = dump_radl(radl) # Update infrastructure CLI.display("Updating infrastructure")