Skip to content
Snippets Groups Projects
Commit 2885b269 authored by Jürg Billeter's avatar Jürg Billeter
Browse files

_platform/linux.py: Remove redundant message

Unsupported sandbox config (UID/GID) is now reported by the element.
parent 2e98735f
No related branches found
No related tags found
Loading
......@@ -39,7 +39,7 @@ class Linux(Platform):
self._gid = os.getegid()
self._die_with_parent_available = _site.check_bwrap_version(0, 1, 8)
self._user_ns_available = self._check_user_ns_available(context)
self._user_ns_available = self._check_user_ns_available()
self._artifact_cache = CASCache(context, enable_push=self._user_ns_available)
@property
......@@ -64,7 +64,7 @@ class Linux(Platform):
################################################
# Private Methods #
################################################
def _check_user_ns_available(self, context):
def _check_user_ns_available(self):
# Here, lets check if bwrap is able to create user namespaces,
# issue a warning if it's not available, and save the state
......@@ -88,9 +88,4 @@ class Linux(Platform):
return True
else:
context.message(
Message(None, MessageType.WARN,
"Unable to create user namespaces with bubblewrap, resorting to fallback",
detail="Some builds may not function due to lack of uid / gid 0, " +
"artifacts created will not be trusted for push purposes."))
return False
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment