def avail_platforms():
 ret = {}
 for platform in CMD_MAP:
  ret[platform] = True
  for cmd in CMD_MAP[platform]:
   if (not salt.utils.which(cmd)):
    ret[platform] = False
 return ret

def avail_platforms ( ) : ret = { } for platform in CMD_MAP : ret [ platform ] = True for cmd in CMD_MAP [ platform ] : if ( not salt . utils . which ( cmd ) ) : ret [ platform ] = False return ret
return which platforms are available cli example: .