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)