def _MakeArgs(amazon_collection_map, google_collection_map):
 request_list = []
 for (url, label) in amazon_collection_map.iteritems():
  request_list.append(CloudMetadataRequest(bios_version_regex=AMAZON_BIOS_REGEX, service_name_regex=AMAZON_SERVICE_REGEX, instance_type='AMAZON', timeout=1.0, url=url, label=label))
 for (url, label) in google_collection_map.iteritems():
  request_list.append(CloudMetadataRequest(bios_version_regex=GOOGLE_BIOS_REGEX, service_name_regex=GOOGLE_SERVICE_REGEX, headers={'Metadata-Flavor': 'Google'}, instance_type='GOOGLE', timeout=1.0, url=url, label=label))
 return request_list

def _MakeArgs ( amazon_collection_map , google_collection_map ) : request_list = [ ] for ( url , label ) in amazon_collection_map . iteritems ( ) : request_list . append ( CloudMetadataRequest ( bios_version_regex = AMAZON_BIOS_REGEX , service_name_regex = AMAZON_SERVICE_REGEX , instance_type = 'AMAZON' , timeout = 1.0 , url = url , label = label ) ) for ( url , label ) in google_collection_map . iteritems ( ) : request_list . append ( CloudMetadataRequest ( bios_version_regex = GOOGLE_BIOS_REGEX , service_name_regex = GOOGLE_SERVICE_REGEX , headers = { 'Metadata-Flavor' : 'Google' } , instance_type = 'GOOGLE' , timeout = 1.0 , url = url , label = label ) ) return request_list
build metadata requests list from collection maps .