Skip to content

Commit

Permalink
Add high sierra to mac_version
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayeul d'Avezac committed Nov 21, 2017
1 parent 62145e6 commit 6d49822
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _grains/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def _mac_version():
from platform import mac_ver
ver = parse(mac_ver()[0])

if parse("10.14") > ver >= parse("10.13"):
return {"mac_version": "highsierra"}
if parse("10.13") > ver >= parse("10.12"):
return {"mac_version": "sierra"}
if parse("10.12") > ver >= parse("10.11"):
Expand Down

0 comments on commit 6d49822

Please sign in to comment.