Example #1
0
def debug_devices(opts):
    from pprint import pprint
    from uxm.parsers.devices import Parser
    parser = Parser()
    data = parser.parse_devices()
    pprint(data)
Example #2
0
def update_devices(opts, is_process=False):
    logger.debug('Updating devices')
    from uxm.parsers.devices import Parser
    parser = Parser(opts.formatter)
    func = lambda: parser.parse_devices()
    update_wrapper(func, opts, config.DEVICES_CACHE)