Skip to content

Commit 2b3eaf3

Browse files
authored
no empty INFO output in safe_output
1 parent 580fb33 commit 2b3eaf3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

recipes/default/classes/datarecipient_coshsh_default.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ def output(self, filter=None):
100100
process = Popen(["git", "clean", "-f", "-d"], stdout=PIPE, stderr=STDOUT, universal_newlines=True)
101101
output, unused_err = process.communicate()
102102
retcode = process.poll()
103-
logger.info(output)
103+
if output:
104+
logger.info(output)
104105
os.chdir(save_dir)
105106
self.analyze_output(output)
106107
logger.error("the last commit was revoked")

0 commit comments

Comments
 (0)