From 0a7c07ee14b0bd65b9c79a5778cea08cb186412f Mon Sep 17 00:00:00 2001 From: Luis Correia Date: Tue, 5 Apr 2016 07:27:35 +0100 Subject: [PATCH] Fix logic for "config" commands --- piku.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/piku.py b/piku.py index 5997227..e154ac4 100644 --- a/piku.py +++ b/piku.py @@ -359,7 +359,8 @@ def deploy_app(app): config_file = join(ENV_ROOT, app, 'ENV') if exists(config_file): echo(open(config_file).read().strip(), fg='white') - echo("Warning: app '%s' not deployed, no config found." % app, fg='yellow') + else: + echo("Warning: app '%s' not deployed, no config found." % app, fg='yellow') @piku.command("config:get") @@ -420,7 +421,8 @@ def deploy_app(app): live_config = join(ENV_ROOT, app, 'LIVE_ENV') if exists(live_config): echo(open(live_config).read().strip(), fg='white') - echo("Warning: app '%s' not deployed, no config found." % app, fg='yellow') + else: + echo("Warning: app '%s' not deployed, no config found." % app, fg='yellow') @piku.command("deploy")