diff options
author | Urban Müller | 2016-08-22 15:18:31 +0200 |
---|---|---|
committer | Urban Müller | 2016-08-22 15:18:31 +0200 |
commit | 0ebc8f38cf00294136e61fde87aa942fc64c3666 (patch) | |
tree | e9a20a509ac60f2d1d4971e53c8094f8fe4d64d5 | |
parent | 4b0f1f9a4396036dc4b0473a9a7850626becc426 (diff) | |
download | itools-0ebc8f38cf00294136e61fde87aa942fc64c3666.tar.gz itools-0ebc8f38cf00294136e61fde87aa942fc64c3666.tar.bz2 itools-0ebc8f38cf00294136e61fde87aa942fc64c3666.zip |
it::cdist(): allow stderr suppression with @
-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)); } |