summaryrefslogtreecommitdiff
path: root/buildstream/_stream.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_stream.py')
-rw-r--r--buildstream/_stream.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildstream/_stream.py b/buildstream/_stream.py
index f4661cc2a..70392f5e8 100644
--- a/buildstream/_stream.py
+++ b/buildstream/_stream.py
@@ -641,6 +641,9 @@ class Stream():
}
workspaces.append(workspace_detail)
+ if not workspaces:
+ workspaces = "No workspaces found"
+
_yaml.dump({
'workspaces': workspaces
})