From cac8513432cd07eaa4fe891b113922b5d55c09e4 Mon Sep 17 00:00:00 2001 From: Tommaso Caiazzi Date: Fri, 17 May 2024 11:52:02 +0200 Subject: [PATCH] Fix `lrestart` parsing (#294) --- src/Kathara/cli/command/LrestartCommand.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Kathara/cli/command/LrestartCommand.py b/src/Kathara/cli/command/LrestartCommand.py index bb47e13a..3b3633da 100644 --- a/src/Kathara/cli/command/LrestartCommand.py +++ b/src/Kathara/cli/command/LrestartCommand.py @@ -131,10 +131,10 @@ def run(self, current_path: str, argv: List[str]) -> None: lclean_argv = ['-d', args['directory']] if args['directory'] else [] - if args['excluded_machines']: - lclean_argv.extend(['--exclude'] + args['excluded_machines']) if args['machine_name']: lclean_argv.extend(args['machine_name']) + if args['excluded_machines']: + lclean_argv.extend(['--exclude'] + args['excluded_machines']) LcleanCommand().run(current_path, lclean_argv) LstartCommand().run(current_path, argv)