<s> import copy <EOL> from cloudferry . lib . base . action import action <EOL> from cloudferry . lib . utils import utils as utl <EOL> CEPH = '<STR_LIT>' <EOL> ISCSI = '<STR_LIT>' <EOL> PATH_COPY_DIFF = <NUM_LIT:0> <EOL> DEFAULT = <NUM_LIT:1> <EOL> INST = utl . INSTANCES_TYPE <EOL> BODY = utl . INSTANCE_BODY <EOL> class IsNotCopyDiffFile ( action . Action ) : <EOL> def run ( self , info = None , ** kwargs ) : <EOL> self . set_next_path ( DEFAULT ) <EOL> info = copy . deepcopy ( info ) <EOL> src_compute = self . src_cloud . resources [ utl . COMPUTE_RESOURCE ] <EOL> dst_compute = self . dst_cloud . resources [ utl . COMPUTE_RESOURCE ] <EOL> backend_ephem_drv_src = src_compute . config . compute . backend <EOL> backend_ephem_drv_dst = dst_compute . config . compute . backend <EOL> for instance in info [ INST ] . values ( ) : <EOL> instance_boot = instance [ BODY ] [ '<STR_LIT>' ] <EOL> if ( ( instance_boot == utl . BOOT_FROM_IMAGE ) and <EOL> ( backend_ephem_drv_src == ISCSI ) and <EOL> ( backend_ephem_drv_dst == ISCSI ) ) : <EOL> self . set_next_path ( PATH_COPY_DIFF ) <EOL> return { } </s>
