OSDN Git Service

Recreate Storagepool (#3)
[karesansui/karesansui.git] / karesansui / lib / utils.py
index 1cc6354..b55c591 100644 (file)
@@ -478,7 +478,7 @@ def pipe_execute_command(commands):
     <comment-ja>
     PIPE付きコマンドを実行する
 
-    @param commands: パイプ付きのコマンドを分割した、配列  example) [['rpm -qa', 'grep karesansui'],]
+    @param commands: パイプ付きのコマンドを分割した、配列  example) [['rpm', '-qa'], ['grep', 'karesansui'],]
     @return: 終了ステータスと実行時の出力結果の配列
     </comment-ja>
     <comment-en>
@@ -493,7 +493,7 @@ def pipe_execute_command(commands):
                         }
         if 0 < len(out):
             subproc_args['stdin'] = out[len(out)-1]
-            
+
         pp = subprocess.Popen(cmd, **subproc_args)
 
         (stdout, stdin) = (pp.stdout, pp.stdin)