Exemplo n.º 1
0
    def do_attach(self, client, args):
        hostname = args.hostname
        volume = args.identifier
        self._init_cinder_client(args.func)
        device_info = client.attach(self.volumes_client,
                                    volume,
                                    hostname)

        utils.print_dict(device_info)
Exemplo n.º 2
0
    def do_attach(self, client, args):
        # TODO(e0ne): use local hostname by default
        hostname = args.hostname
        volume = args.identifier
        self._init_cinder_client(args.func)
        device_info = client.attach(self.volumes_client,
                                    volume,
                                    hostname)

        utils.print_dict(device_info)