From 515a14bc46255e7e0c76f475afcbeabe7587468a Mon Sep 17 00:00:00 2001 From: Aneesh Agrawal Date: Sun, 22 Jan 2017 13:31:24 -0500 Subject: [PATCH] Quote repo names to ensure valid TOML Otherwise repos like `download.servo.org` which contain dots in their name are not parsed correctly; using quotes ensures the repo name is parsed as a single string. --- homu/files/cfg.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homu/files/cfg.toml b/homu/files/cfg.toml index 80b82891..c9a9aedc 100644 --- a/homu/files/cfg.toml +++ b/homu/files/cfg.toml @@ -252,16 +252,16 @@ password = "{{ pillar["homu"]["buildbot-http-pass"] }}" {% for repo in travis_repos %} -[repo.{{ repo["name"] }}] +[repo."{{ repo["name"] }}"] owner = "{{ repo.get("owner", "servo") }}" name = "{{ repo["name"] }}" reviewers = {{ reviewers + operators + repo.get("extra_reviewers", []) }} try_users = {{ try }} -[repo.{{ repo["name"] }}.github] +[repo."{{ repo["name"] }}".github] secret = "{{ pillar["homu"]["gh-webhook-secret"] }}" -[repo.{{ repo["name"] }}.status.travis] +[repo."{{ repo["name"] }}".status.travis] context = 'continuous-integration/travis-ci/push' {% endfor %}