Skip to content

Commit b614b9a

Browse files
committed
_sandboxbuildboxrun: Fix check to enable action cache updates
The check was previously ignored if the user didn't have remote execution / action cache configured.
1 parent ce4ba2f commit b614b9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/buildstream/sandbox/_sandboxbuildboxrun.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ def _execute_action(self, action, flags):
132132

133133
if self.re_remote:
134134
buildbox_command.append("--instance={}".format(self.re_remote.local_cas_instance_name))
135-
if config.remote_apis_socket_action_cache_enable_update:
136-
buildbox_command.append("--nested-ac-enable-update")
135+
if config.remote_apis_socket_action_cache_enable_update:
136+
buildbox_command.append("--nested-ac-enable-update")
137137

138138
# Do not redirect stdout/stderr
139139
if "no-logs-capture" in self._capabilities:

0 commit comments

Comments
 (0)