<s> from lib . mmonit import MmonitBaseAction <EOL> class MmonitSessionPut ( MmonitBaseAction ) : <EOL> def run ( self , attribute ) : <EOL> try : <EOL> k , v = attribute . split ( "<STR_LIT::>" ) <EOL> except : <EOL> error = ( "<STR_LIT>" . format ( <EOL> attribute ) ) <EOL> raise Exception ( error ) <EOL> data = { k : v } <EOL> self . login ( ) <EOL> self . session . post ( "<STR_LIT>" . format ( self . url ) , data = data ) <EOL> self . logout ( ) <EOL> return True </s>
