summaryrefslogtreecommitdiff
path: root/src/buildstream/element.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/element.py')
-rw-r--r--src/buildstream/element.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index 03b64e760..06581b652 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -328,10 +328,6 @@ class Element(Plugin):
# Extract Sandbox config
self.__sandbox_config = self.__extract_sandbox_config(context, project, meta)
- if not self.__use_remote_execution():
- platform = context.platform
- platform.check_sandbox_config(self.__sandbox_config)
-
def __lt__(self, other):
return self.name < other.name
@@ -2514,6 +2510,8 @@ class Element(Plugin):
yield sandbox
elif directory is not None and os.path.exists(directory):
+ platform = context.platform
+ platform.check_sandbox_config(config)
sandbox = platform.create_sandbox(
context,