| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -115,7 +115,7 @@ def _is_rootless() -> bool: # pragma: win32 no cover | |||
| 115 | 115 | return ( | |
| 116 | 116 | # docker: | |
| 117 | 117 | # https://docs.docker.com/reference/api/engine/version/v1.48/#tag/System/operation/SystemInfo | |
| 118 | - 'name=rootless' in info.get('SecurityOptions', ()) or | ||
| 118 | + 'name=rootless' in (info.get('SecurityOptions') or ()) or | ||
| 119 | 119 | # podman: | |
| 120 | 120 | # https://docs.podman.io/en/latest/_static/api.html?version=v5.4#tag/system/operation/SystemInfoLibpod | |
| 121 | 121 | info['host']['security']['rootless'] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -89,7 +89,8 @@ def test_docker_user_rootless(info_ret): | |||
| 89 | 89 | ( | |
| 90 | 90 | (0, b'{"SecurityOptions": ["name=cgroupns"]}', b''), | |
| 91 | 91 | (0, b'{"host": {"security": {"rootless": false}}}', b''), | |
| 92 | - (0, b'{"respone_from_some_other_container_engine": true}', b''), | ||
| 92 | + (0, b'{"response_from_some_other_container_engine": true}', b''), | ||
| 93 | + (0, b'{"SecurityOptions": null}', b''), | ||
| 93 | 94 | (1, b'', b''), | |
| 94 | 95 | ), | |
| 95 | 96 | ) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments