summaryrefslogtreecommitdiff
path: root/buildstream/element.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-02 19:55:24 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-02 19:55:57 +0900
commit19e31adb00f19f0789a3c4622150ca8f6e9c8901 (patch)
treeee84cbb595ecdf274801a1864b484bf0d0dc1657 /buildstream/element.py
parent8b5742dd8b3d6e437703ca02553804ce7cc9d53d (diff)
downloadbuildstream-19e31adb00f19f0789a3c4622150ca8f6e9c8901.tar.gz
Refactoring of highlevel workspace code
Move all workspace related code out of Pipeline() and into the frontend App() object. Some changes in transition here include: o Workspaces() object methods for looking up and deleting workspaces now take an element name instead of an element. o Share code for partial App() initialization between the `workspace close` and `workspace list` commands o No longer require that an element exist in the project in order to close a workspace This fixes issue #249
Diffstat (limited to 'buildstream/element.py')
-rw-r--r--buildstream/element.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index 2fca2bd9d..418096c58 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -775,7 +775,7 @@ class Element(Plugin):
# (Workspace|None): A workspace associated with this element
#
def _get_workspace(self):
- return self._get_project()._workspaces.get_workspace(self)
+ return self._get_project()._workspaces.get_workspace(self.name)
# _get_artifact_metadata():
#