Add zmqversion grain

Like saltversion, this grain can help show the effective version of a
particular component (in this case ZMQ) that is in use on the running
minion, and help aid in troubleshooting.
This commit is contained in:
Erik Johnson 2014-03-06 15:01:49 -06:00
parent 93d7ff22ec
commit 1da97c6217

View File

@ -1196,6 +1196,16 @@ def saltversion():
return {'saltversion': __version__}
def zmqversion():
'''
Return the zeromq version
'''
# Provides:
# zmqversion
import zmq
return {'zmqversion': zmq.zmq_version()}
def saltversioninfo():
'''
Return the version_info of salt