diff options
Diffstat (limited to 'src/buildstream/sandbox/_sandboxreapi.py')
-rw-r--r-- | src/buildstream/sandbox/_sandboxreapi.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/buildstream/sandbox/_sandboxreapi.py b/src/buildstream/sandbox/_sandboxreapi.py index 9d8c22f0b..43d00a357 100644 --- a/src/buildstream/sandbox/_sandboxreapi.py +++ b/src/buildstream/sandbox/_sandboxreapi.py @@ -136,8 +136,10 @@ class SandboxREAPI(Sandbox): else: uid = config.build_uid gid = config.build_gid - platform_dict["unixUID"] = str(uid) - platform_dict["unixGID"] = str(gid) + if uid is not None: + platform_dict["unixUID"] = str(uid) + if gid is not None: + platform_dict["unixGID"] = str(gid) if flags & SandboxFlags.NETWORK_ENABLED: platform_dict["network"] = "on" |