From a8756d493ad6b9a8b1c1157c8efca6627d11a5c3 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 25 May 2022 13:19:12 +0200 Subject: [PATCH] Fixed error with RemoveService --- src/cpl_cli/command/remove_service.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cpl_cli/command/remove_service.py b/src/cpl_cli/command/remove_service.py index 7d7dbe09..42462219 100644 --- a/src/cpl_cli/command/remove_service.py +++ b/src/cpl_cli/command/remove_service.py @@ -52,8 +52,9 @@ class RemoveService(CommandABC): project_json.write(json.dumps(content, indent=2)) project_json.close() - @staticmethod - def _remove_sources(path: str): + def _remove_sources(self, path: str): + if self._is_simulation: + return shutil.rmtree(path) def _create_workspace(self, path: str):