def psversion():
 salt.utils.warn_until(u'Oxygen', u"The 'psversion' has been deprecated and has been replaced by 'cmd.shell_info'.")
 powershell_info = __salt__[u'cmd.shell_info'](u'powershell')
 if powershell_info[u'installed']:
  try:
   return int(powershell_info[u'version'].split(u'.')[0])
  except ValueError:
   pass
 return 0

def psversion ( ) : salt . utils . warn_until ( u'Oxygen' , u"The 'psversion' has been deprecated and has been replaced by 'cmd.shell_info'." ) powershell_info = __salt__ [ u'cmd.shell_info' ] ( u'powershell' ) if powershell_info [ u'installed' ] : try : return int ( powershell_info [ u'version' ] . split ( u'.' ) [ 0 ] ) except ValueError : pass return 0
returns the powershell version this has been deprecated and has been replaced by cmd .