diff options
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)); } |