def modify(self, args, config, connection): forest = Database(args['name'], connection=connection) if not forest.exists(): print("Error: Forest does not exist: {0}".format(args['name'])) sys.exit(1) if args['json'] is not None: forest = self._read(args['name'], args['json']) if forest.host() is None: forest.set_host(args['forest_host']) self._properties(forest, args) print("Modify forest {0}...".format(args['name'])) forest.update(connection=connection)