def get_list(**kwargs):
 opts = salt.utils.namecheap.get_opts('namecheap.ssl.getList')
 for (key, value) in kwargs.iteritems():
  opts[key] = value
 response_xml = salt.utils.namecheap.get_request(opts)
 if (response_xml is None):
  return []
 ssllistresult = response_xml.getElementsByTagName('SSLListResult')[0]
 result = []
 for e in ssllistresult.getElementsByTagName('SSL'):
  ssl = salt.utils.namecheap.atts_to_dict(e)
  result.append(ssl)
 return result

def get_list ( ** kwargs ) : opts = salt . utils . namecheap . get_opts ( 'namecheap.ssl.getList' ) for ( key , value ) in kwargs . iteritems ( ) : opts [ key ] = value response_xml = salt . utils . namecheap . get_request ( opts ) if ( response_xml is None ) : return [ ] ssllistresult = response_xml . getElementsByTagName ( 'SSLListResult' ) [ 0 ] result = [ ] for e in ssllistresult . getElementsByTagName ( 'SSL' ) : ssl = salt . utils . namecheap . atts_to_dict ( e ) result . append ( ssl ) return result
transforms a string or list to a list .