Skip to content

Commit a3f12f3

Browse files
committed
fixup! Host.os_type(): Return "darwin" on macOS
1 parent 5afefbe commit a3f12f3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎ceph_devstack/host.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ def os_type(self) -> str:
8282
assert proc.stdout is not None
8383
assert proc.wait() == 0, "is /etc/os-release missing?"
8484
self._os_type = proc.stdout.read().decode().strip().lower()
85-
self._os_type = uname_str
85+
else:
86+
self._os_type = uname_str
8687
return self._os_type
8788

8889
def package_manager(self) -> str | None:

0 commit comments

Comments
 (0)