def chocolatey_version():
 if ('chocolatey._version' in __context__):
  return __context__['chocolatey._version']
 cmd = [_find_chocolatey(__context__, __salt__)]
 cmd.append('-v')
 out = __salt__['cmd.run'](cmd, python_shell=False)
 __context__['chocolatey._version'] = out
 return __context__['chocolatey._version']

def chocolatey_version ( ) : if ( 'chocolatey._version' in __context__ ) : return __context__ [ 'chocolatey._version' ] cmd = [ _find_chocolatey ( __context__ , __salt__ ) ] cmd . append ( '-v' ) out = __salt__ [ 'cmd.run' ] ( cmd , python_shell = False ) __context__ [ 'chocolatey._version' ] = out return __context__ [ 'chocolatey._version' ]
returns the version of chocolatey installed on the minion .