Add oscodename grain to MacOS #67637
Replies: 6 comments
-
It looks like this doesn't exist for a good reason. It's hard... For 10.14 using the PyObjC library that comes with the 2019.2 pkg. And no guarantee this will work on 10.15
For older Macs, this seems to work.
ewww. |
Beta Was this translation helpful? Give feedback.
-
As ugly as possible:
|
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
Implemented in "pop_darwin", grains from there will be used in salt for Sodium release: |
Beta Was this translation helpful? Give feedback.
-
since this is in GitLab @Akm0d should we move the issue there, or will there be work in the salt code base, too and thus keeping this in this repo for Magnesium? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description of Issue
The
oscodename
grain is absent on MacOS.Expected values would be Sierra, High Sierra, Mojave, or whatever.
Setup
Versions Report
/usr/local/Cellar/salt/2019.2.0_1/libexec/lib/python3.7/site-packages/salt/version.py:632: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
lin_ver = linux_distribution()
Salt Version:
Salt: 2019.2.0
Beta Was this translation helpful? Give feedback.
All reactions