From e45d3ae83f3700fe37ceb3accd69ead5f739543b Mon Sep 17 00:00:00 2001 From: ldericher Date: Tue, 18 Aug 2020 16:02:45 +0200 Subject: [PATCH] Run conf-copy before upping instance --- src/kiwi/subcommands/up.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/kiwi/subcommands/up.py b/src/kiwi/subcommands/up.py index 0c16713..0f958cd 100644 --- a/src/kiwi/subcommands/up.py +++ b/src/kiwi/subcommands/up.py @@ -12,6 +12,12 @@ class UpCommand(FlexCommand): description="Bring up the whole instance, a project or service(s) inside a project" ) + def _run_instance(self, runner, config, args): + if runner.run('conf-copy'): + return super()._run_instance(runner, config, args) + + return False + def _run_services(self, runner, config, args, services): if runner.run('net-up'): DockerCommand('docker-compose').run(