def do_export(self, args): """Export the inventory data from xcat database""" mgr.validate_args(args, 'export') mgr.export_by_type(args.type, args.name, args.path, args.directory, args.format, version=args.version, exclude=args.exclude.split(','))
def do_import(self, args): """Import inventory file to xcat database""" mgr.validate_args(args, 'import') mgr.importobj(args.path, args.directory, args.type, args.name, dryrun=args.dryrun, version=args.version, update=args.update, envs=args.env)