def take_action(self, parsed_args):
        self.log.debug('take_action(%s)', parsed_args)

        data = lib_object.create_object(
            self.app.restapi,
            self.app.client_manager.object_store.endpoint,
            parsed_args.container,
            parsed_args.object,
        )

        return zip(*sorted(six.iteritems(data)))
Example #2
0
    def take_action(self, parsed_args):
        self.log.debug('take_action(%s)', parsed_args)

        data = lib_object.create_object(
            self.app.client_manager.session,
            self.app.client_manager.object_store.endpoint,
            parsed_args.container,
            parsed_args.object,
        )

        return zip(*sorted(six.iteritems(data)))
Example #3
0
    def take_action(self, parsed_args):
        self.log.debug('take_action(%s)', parsed_args)

        results = []
        for obj in parsed_args.objects:
            data = lib_object.create_object(
                self.app.client_manager.session,
                self.app.client_manager.object_store.endpoint,
                parsed_args.container,
                obj,
            )
            results.append(data)

        columns = ("object", "container", "etag")
        return (columns, (utils.get_dict_properties(
            s,
            columns,
            formatters={},
        ) for s in results))
Example #4
0
    def take_action(self, parsed_args):
        self.log.debug('take_action(%s)', parsed_args)

        results = []
        for obj in parsed_args.objects:
            data = lib_object.create_object(
                self.app.client_manager.session,
                self.app.client_manager.object_store.endpoint,
                parsed_args.container,
                obj,
            )
            results.append(data)

        columns = ("object", "container", "etag")
        return (columns,
                (utils.get_dict_properties(
                    s, columns,
                    formatters={},
                ) for s in results))