#NEWLINE# def _monkeypatch_instance( self , instance ) : #NEWLINE# #INDENT# instance . extra [ 'gonzo_tags' ] = instance . extra [ 'metadata' ] #NEWLINE# instance . extra [ 'gonzo_size' ] = self . _get_size_name ( instance . extra [ 'flavorId' ] ) #NEWLINE# created_time = datetime . strptime ( instance . extra [ 'created' ] , '%Y-%m-%dT%H:%M:%S%fZ' ) #NEWLINE# instance . extra [ 'gonzo_created_time' ] = created_time #NEWLINE# instance . extra [ 'gonzo_az' ] = instance . extra [ 'availability_zone' ] #NEWLINE# instance . extra [ 'gonzo_network_address' ] = instance . private_ips [ 0 ]