<s> from cloudferry . lib . base . action import action <EOL> from cloudferry . lib . utils import utils as utl <EOL> import copy <EOL> INSTANCES = '<STR_LIT>' <EOL> DIFF = '<STR_LIT>' <EOL> PATH_DST = '<STR_LIT>' <EOL> HOST_DST = '<STR_LIT>' <EOL> class MapComputeInfo ( action . Action ) : <EOL> def run ( self , info = None , ** kwargs ) : <EOL> new_info = copy . deepcopy ( info ) <EOL> for instance_id , instance in new_info [ utl . INSTANCES_TYPE ] . iteritems ( ) : <EOL> self . dst_cloud . cloud_config . cloud . temp = '<STR_LIT:->' <EOL> path_dst = "<STR_LIT>" % ( self . dst_cloud . cloud_config . cloud . temp , <EOL> "<STR_LIT>" % instance_id ) <EOL> instance [ DIFF ] [ PATH_DST ] = path_dst <EOL> instance [ DIFF ] [ HOST_DST ] = self . dst_cloud . cloud_config . cloud . ssh_host <EOL> return { <EOL> '<STR_LIT:info>' : new_info <EOL> } </s>
