<s> from cloudferry . lib . base . action import action <EOL> import copy <EOL> class CopyVar ( action . Action ) : <EOL> def __init__ ( self , init , original_info_name , info_name , deepcopy = False ) : <EOL> self . original_info_name = original_info_name <EOL> self . info_name = info_name <EOL> self . deepcopy = deepcopy <EOL> super ( CopyVar , self ) . __init__ ( init ) <EOL> def run ( self , ** kwargs ) : <EOL> if not self . deepcopy : <EOL> new_obj = copy . copy ( kwargs [ self . original_info_name ] ) <EOL> else : <EOL> new_obj = copy . deepcopy ( kwargs [ self . original_info_name ] ) <EOL> return { <EOL> self . info_name : new_obj <EOL> } </s>
