From af5ab0a804d6588f2551d82491b6319efb34e9e0 Mon Sep 17 00:00:00 2001 From: Aneesh Agrawal Date: Sun, 3 Jul 2016 15:25:36 +0000 Subject: [PATCH] Pre-split cat step.yml command We are passing the command as an array, so we need to pre-split the command into separate words. --- buildbot/master/files/config/factories.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/buildbot/master/files/config/factories.py b/buildbot/master/files/config/factories.py index 3833c1e2..131f5088 100644 --- a/buildbot/master/files/config/factories.py +++ b/buildbot/master/files/config/factories.py @@ -130,9 +130,8 @@ def __init__(self, builder_name, environment, yaml_path, **kwargs): @defer.inlineCallbacks def run(self): try: - print_yaml_cmd = "cat {}".format(self.yaml_path) cmd = yield self.makeRemoteShellCommand( - command=[print_yaml_cmd], + command=["cat", "./{}".format(self.yaml_path)], collectStdout=True ) yield self.runCommand(cmd)