From 6f99de30d0da3c3e7dbb4eacac8b02c6cf0eac06 Mon Sep 17 00:00:00 2001 From: ldericher Date: Tue, 18 Aug 2020 14:23:56 +0200 Subject: [PATCH] Regression: Run net-up automatically --- src/kiwi/subcommands/up.py | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/kiwi/subcommands/up.py b/src/kiwi/subcommands/up.py index 1bf8c7c..f8290a6 100644 --- a/src/kiwi/subcommands/up.py +++ b/src/kiwi/subcommands/up.py @@ -16,13 +16,19 @@ class UpCommand(FlexCommand): ) def _run_project(self, runner, config, args): - DockerCommand('docker-compose').run( - config, args, ['up', '-d'] - ) - return True + if runner.run('net-up'): + DockerCommand('docker-compose').run( + config, args, ['up', '-d'] + ) + return True + + return False def _run_services(self, runner, config, args, services): - DockerCommand('docker-compose').run( - config, args, ['up', '-d', *services] - ) - return True + if runner.run('net-up'): + DockerCommand('docker-compose').run( + config, args, ['up', '-d', *services] + ) + return True + + return False