def list_platform_sets(server_url):
 config = _get_asam_configuration(server_url)
 if (not config):
  return False
 url = config['platformset_config_url']
 data = {'manual': 'false'}
 auth = (config['username'], config['password'])
 try:
  html_content = _make_post_request(url, data, auth, verify=False)
 except Exception as exc:
  err_msg = 'Failed to look up existing platform sets'
  log.error('{0}:\n{1}'.format(err_msg, exc))
  return {server_url: err_msg}
 parser = _parse_html_content(html_content)
 platform_set_list = _get_platform_sets(parser.data)
 if platform_set_list:
  return {server_url: platform_set_list}
 else:
  return {server_url: 'No existing platform sets found'}

def list_platform_sets ( server_url ) : config = _get_asam_configuration ( server_url ) if ( not config ) : return False url = config [ 'platformset_config_url' ] data = { 'manual' : 'false' } auth = ( config [ 'username' ] , config [ 'password' ] ) try : html_content = _make_post_request ( url , data , auth , verify = False ) except Exception as exc : err_msg = 'Failed to look up existing platform sets' log . error ( '{0}:\n{1}' . format ( err_msg , exc ) ) return { server_url : err_msg } parser = _parse_html_content ( html_content ) platform_set_list = _get_platform_sets ( parser . data ) if platform_set_list : return { server_url : platform_set_list } else : return { server_url : 'No existing platform sets found' }
to list all asam platform sets present on the novell fan-out driver cli example: .