Browse files

Merge pull request #11010 from terminalmage/zmq-grain

Add zmqversion grain
  • Loading branch information...
2 parents ea8e62e + 1da97c6 commit 1aedd081b9b7853427149fd9cd27906cf3358249 @thatch45 thatch45 committed Mar 7, 2014
Showing with 10 additions and 0 deletions.
  1. +10 −0 salt/grains/core.py
View
10 salt/grains/core.py
@@ -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

0 comments on commit 1aedd08

Please sign in to comment.