summaryrefslogtreecommitdiff
path: root/src/buildstream/_frontend/cli.py
diff options
context:
space:
mode:
authorTristan Maat <tristan.maat@codethink.co.uk>2019-10-02 10:58:13 +0100
committerTristan Maat <tristan.maat@codethink.co.uk>2019-10-02 11:37:17 +0100
commit9cb1ad2bf413c46ad25a86534a4c4686d116c179 (patch)
treed5827d4317867f4a7c21478bd79553b3c34b2072 /src/buildstream/_frontend/cli.py
parent7d050faca8a9c4bd70afd26121d1800de74f119b (diff)
downloadbuildstream-9cb1ad2bf413c46ad25a86534a4c4686d116c179.tar.gz
Do not check for casd in bash completion
This caused stacktraces when a user didn't have buildbox-casd installed, even though it wasn't required for completion, even for artifacts. It does add a slightly ugly parameter to Context, long-term it might make sense to create a special slimmed-down context for completion.
Diffstat (limited to 'src/buildstream/_frontend/cli.py')
-rw-r--r--src/buildstream/_frontend/cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_frontend/cli.py b/src/buildstream/_frontend/cli.py
index 931f531aa..9abab6473 100644
--- a/src/buildstream/_frontend/cli.py
+++ b/src/buildstream/_frontend/cli.py
@@ -133,7 +133,7 @@ def complete_target(args, incomplete):
def complete_artifact(orig_args, args, incomplete):
from .._context import Context
- with Context() as ctx:
+ with Context(use_casd=False) as ctx:
config = None
if orig_args: