#NEWLINE# def _WaitForUpdate( self , timeout_secs ) : #NEWLINE# #INDENT# 'Makes a hanging get request for the contents of the metadata server.' #NEWLINE# request_url = ( METADATA_URL + ( METADATA_HANG % ( timeout_secs , self . etag ) ) ) #NEWLINE# logging . debug ( 'Getting url: %s' , request_url ) #NEWLINE# request = urllib2 . Request ( request_url ) #NEWLINE# request . add_header ( 'Metadata-Flavor' , 'Google' ) #NEWLINE# return self . urllib2 . urlopen ( request , timeout = ( timeout_secs * 1.1 ) )