mirror of
https://github.com/munki/munki.git
synced 2026-01-06 06:29:56 -06:00
Memoize get_version since it won't change during a run
This commit is contained in:
1
code/client/munkilib/info.py
Normal file → Executable file
1
code/client/munkilib/info.py
Normal file → Executable file
@@ -504,6 +504,7 @@ def getAppData():
|
||||
return app_data
|
||||
|
||||
|
||||
@utils.Memoize
|
||||
def get_version():
|
||||
"""Returns version of munkitools, reading version.plist"""
|
||||
vers = "UNKNOWN"
|
||||
|
||||
Reference in New Issue
Block a user