From b3c64f0403c065356cd4a7256f7e9cce4409b566 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 11 Apr 2020 23:19:00 +0200 Subject: [PATCH] Fix output check on git status --- autonomic/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autonomic/utils.py b/autonomic/utils.py index ca10693..e69d5e3 100644 --- a/autonomic/utils.py +++ b/autonomic/utils.py @@ -98,7 +98,10 @@ def git_status(fpath): cmd = ["git", "status", "--porcelain"] output = run(cmd, cwd=fpath) - if output is not None: + if output: msg = "warning: git reports uncommitted changes in {}".format(fpath) log.warning(msg) log.warning(output) + else: + msg = "No unstaged changes found in {}".format(INFRA_DIR) + log.info(msg)