simplify DeleteService.php
This commit is contained in:
parent
1cfddfd529
commit
a4bb87d13b
1 changed files with 1 additions and 5 deletions
|
|
@ -50,11 +50,7 @@ public function handle(Service $service, bool $deleteConfigurations, bool $delet
|
||||||
$service->delete_connected_networks($service->uuid);
|
$service->delete_connected_networks($service->uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
$commands[] = "docker rm -f $service->uuid";
|
instant_remote_process(["docker rm -f $service->uuid"], $server, throwError: false);
|
||||||
|
|
||||||
// Executing remaining commands
|
|
||||||
instant_remote_process($commands, $server, false);
|
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
throw new \Exception($e->getMessage());
|
throw new \Exception($e->getMessage());
|
||||||
} finally {
|
} finally {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue