def list_windowsfeatures():
 choc_path = _find_chocolatey(__context__, __salt__)
 cmd = [choc_path, 'list', '--source', 'windowsfeatures']
 result = __salt__['cmd.run_all'](cmd, python_shell=False)
 if (result['retcode'] != 0):
  err = 'Running chocolatey failed: {0}'.format(result['stdout'])
  raise CommandExecutionError(err)
 return result['stdout']

def list_windowsfeatures ( ) : choc_path = _find_chocolatey ( __context__ , __salt__ ) cmd = [ choc_path , 'list' , '--source' , 'windowsfeatures' ] result = __salt__ [ 'cmd.run_all' ] ( cmd , python_shell = False ) if ( result [ 'retcode' ] != 0 ) : err = 'Running chocolatey failed: {0}' . format ( result [ 'stdout' ] ) raise CommandExecutionError ( err ) return result [ 'stdout' ]
instructs chocolatey to pull a full package list from the windows features list .