def _set_to_get(set_cmd, module):
 set_cmd = truncate_before(set_cmd, ' option:')
 get_cmd = set_cmd.split(' ')
 (key, value) = get_cmd[(-1)].split('=')
 module.log(('get commands %s ' % key))
 return (((['--', 'get'] + get_cmd[:(-1)]) + [key]), value)

def _set_to_get ( set_cmd , module ) : set_cmd = truncate_before ( set_cmd , ' option:' ) get_cmd = set_cmd . split ( ' ' ) ( key , value ) = get_cmd [ ( - 1 ) ] . split ( '=' ) module . log ( ( 'get commands %s ' % key ) ) return ( ( ( [ '--' , 'get' ] + get_cmd [ : ( - 1 ) ] ) + [ key ] ) , value )
convert set command to get command and set value .