From 0ebc8f38cf00294136e61fde87aa942fc64c3666 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 22 Aug 2016 15:18:31 +0200 Subject: it::cdist(): allow stderr suppression with @ --- it.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'it.class') diff --git a/it.class b/it.class index 97b018d..f63c3e0 100644 --- a/it.class +++ b/it.class @@ -652,7 +652,7 @@ static function cexec(/* $cmd, $values1 = array(), ... */) /** - * distribute local files to all cluster hosts of the current service + * distribute local files to all cluster hosts of the current service. no stderr if called with @ * @params $files filename or array of files to distribute * @see it::exec, /opt/ultra/bin/cdist */ @@ -661,7 +661,7 @@ static function cdist(/* $file1, ... */) foreach (func_get_args() as $arg) $files = array_merge((array)$files, (array)$arg); - return it::exec('cdist {FILES}', array('FILES' => $files)); + return it::exec('cdist {FILES}' . (error_reporting() ? "" : " 2>/dev/null"), array('FILES' => $files)); } -- cgit v1.2.3