def do_export(*args):
if len(args) < 1: error(1, 'get [uuid]')
body = do_get0('raw/export', {'uuid':args[0]})
- if type(body) != type({}):
+ if type(body) != type([]):
error(11, 'Unknown data')
- if 'entries' in body:
- body = body['entries']
if len(body) == 1:
body = body[0]
if not 'uuid' in body:
int count = 0;
const idnodes_rb_t *domain = NULL;
- htsmsg_print(args);
if (!(f = htsmsg_field_find(args, "node")))
return EINVAL;
if (!(msg = htsmsg_field_get_list(f)))
if (!(msg = htsmsg_field_get_map(f)))
return EINVAL;
- htsmsg_print(msg);
tvh_mutex_lock(&global_lock);