From 9ff59090c20fd054719976065476a68233e0be35 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 31 May 2012 22:19:05 -0400 Subject: [PATCH] capture possible chown stderr output --- library/file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/file b/library/file index 4e52cf39c8..daf8715ccf 100755 --- a/library/file +++ b/library/file @@ -216,7 +216,7 @@ def set_owner_if_different(path, owner, changed): return changed user, group = user_and_group(path) if owner != user: - rc = os.system("/bin/chown -R %s %s" % (owner, path)) + rc = os.system("/bin/chown -R %s %s 2>/dev/null" % (owner, path)) if rc != 0: fail_kv(path=path, msg='chown failed') return True