<s> from datetime import datetime , timedelta <EOL> from lib . actions import OrionBaseAction <EOL> class NodeUnmanage ( OrionBaseAction ) : <EOL> def run ( self , node , platform , minutes ) : <EOL> """<STR_LIT>""" <EOL> if minutes > self . config [ '<STR_LIT>' ] : <EOL> raise ValueError ( <EOL> "<STR_LIT>" . format ( <EOL> minutes , self . config [ '<STR_LIT>' ] ) ) <EOL> self . connect ( platform ) <EOL> NodeId = "<STR_LIT>" . format ( self . get_node_id ( node ) ) <EOL> now = datetime . utcnow ( ) <EOL> later = now + timedelta ( minutes = minutes ) <EOL> self . invoke ( "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> NodeId , <EOL> now , <EOL> later , <EOL> False ) <EOL> return True </s>
