def get_install_server_profiles():
 install_server = None
 install_server_info = get_install_server_info()
 install_server_type = install_server_info.get('type', None)
 install_server_url = install_server_info.get('xmlrpc_url', None)
 if ((install_server_type == 'cobbler') and install_server_url):
  install_server = xmlrpclib.ServerProxy(install_server_url)
 if (install_server is None):
  return None
 return install_server.get_item_names('profile')

def get_install_server_profiles ( ) : install_server = None install_server_info = get_install_server_info ( ) install_server_type = install_server_info . get ( 'type' , None ) install_server_url = install_server_info . get ( 'xmlrpc_url' , None ) if ( ( install_server_type == 'cobbler' ) and install_server_url ) : install_server = xmlrpclib . ServerProxy ( install_server_url ) if ( install_server is None ) : return None return install_server . get_item_names ( 'profile' )
get install server profiles .