summaryrefslogtreecommitdiff
path: root/buildstream/_project.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-11-16 17:33:49 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-11-22 15:03:55 +0000
commitbf8fc373d7711861129ab841a74ecf32b3d8b2dd (patch)
treedd1b8c94a73b61f34ffcfbb8942cbb763a7bf210 /buildstream/_project.py
parent43d3871533a41524f3537793a2a1ea1a7a3e1aed (diff)
downloadbuildstream-bf8fc373d7711861129ab841a74ecf32b3d8b2dd.tar.gz
Replace 'push-url' and 'pull-url' options with just 'url'sam/canonical-push-urls
This is possible now that the SSH protocol can redirect to the appropriate pull URL. Note that this commit makes no attempt at backwards compatibility. Everthing will break!
Diffstat (limited to 'buildstream/_project.py')
-rw-r--r--buildstream/_project.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/buildstream/_project.py b/buildstream/_project.py
index 8348ca9f1..3a4bf97f3 100644
--- a/buildstream/_project.py
+++ b/buildstream/_project.py
@@ -171,9 +171,8 @@ class Project():
# Load artifacts pull/push configuration for this project
artifacts = _yaml.node_get(config, Mapping, 'artifacts', default_value={})
- _yaml.node_validate(artifacts, ['pull-url', 'push-url'])
- self.artifact_pull = _yaml.node_get(artifacts, str, 'pull-url', default_value='') or None
- self.artifact_push = _yaml.node_get(artifacts, str, 'push-url', default_value='') or None
+ _yaml.node_validate(artifacts, ['url'])
+ self.artifact_url = _yaml.node_get(artifacts, str, 'url', default_value='') or None
# Workspace configurations
self._workspaces = self._load_workspace_config()