summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it.class4
1 files changed, 2 insertions, 2 deletions
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));
}