def doWork(self):
        configHolder = ConfigHolder(self.options.__dict__, self.config or {})
        configHolder.pdiskProtocol = "https"
        pdisk = VolumeManagerFactory.create(configHolder)
        for uuid in self.uuids:
            try:
                target = pdisk.hotDetach(self.options.instance, uuid)
                print 'DETACHED %s from VM %s on /dev/%s' % (uuid, self.options.instance, target)
            except Exception, e:
                printError('DISK %s: %s' % (uuid, e), exit=False)