예제 #1
0
 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(','))
예제 #2
0
 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)