]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
orchestra/run.py: document use of Raw()
authorDan Mick <dan.mick@redhat.com>
Wed, 3 Dec 2014 03:06:33 +0000 (19:06 -0800)
committerDan Mick <dan.mick@redhat.com>
Thu, 4 Dec 2014 01:02:48 +0000 (17:02 -0800)
Signed-off-by: Dan Mick <dan.mick@redhat.com>
teuthology/orchestra/run.py

index 6f7f54889dc74e1493c801c6057bdcf031717569..fc4502ea33f6e8a785b6390e1b742dd8d8393872 100644 (file)
@@ -290,7 +290,10 @@ def run(
     name=None
 ):
     """
-    Run a command remotely.
+    Run a command remotely.  If any of 'args' contains shell metacharacters
+    that you want to pass unquoted, pass it as an instance of Raw(); otherwise
+    it will be quoted with pipes.quote() (single quote, and single quotes
+    enclosed in double quotes).
 
     :param client: SSHConnection to run the command with
     :param args: command to run