def get_catalog():
 cmd = ['defaults', 'read', '/Library/Preferences/com.apple.SoftwareUpdate.plist']
 out = salt.utils.mac_utils.execute_return_result(cmd)
 if ('AppleCatalogURL' in out):
  cmd.append('AppleCatalogURL')
  out = salt.utils.mac_utils.execute_return_result(cmd)
  return out
 elif ('CatalogURL' in out):
  cmd.append('CatalogURL')
  out = salt.utils.mac_utils.execute_return_result(cmd)
  return out
 else:
  return 'Default'

def get_catalog ( ) : cmd = [ 'defaults' , 'read' , '/Library/Preferences/com.apple.SoftwareUpdate.plist' ] out = salt . utils . mac_utils . execute_return_result ( cmd ) if ( 'AppleCatalogURL' in out ) : cmd . append ( 'AppleCatalogURL' ) out = salt . utils . mac_utils . execute_return_result ( cmd ) return out elif ( 'CatalogURL' in out ) : cmd . append ( 'CatalogURL' ) out = salt . utils . mac_utils . execute_return_result ( cmd ) return out else : return 'Default'
get service catalog from keystone with token and all endpoints .