def is_volume_attached(self, blockdevice):
        context = self._config.context
        if "volume_id" in context.ami:
            return True

        try:
            self._volume_attached(blockdevice)
        except VolumeException:
            log.debug('Timed out waiting for volume {0} to attach to {1}:{2}'.format(self._volume.id, self._instance.id, blockdevice))
            return False
        return True
dataset/ETHPy150Open Netflix/aminator/aminator/plugins/cloud/ec2.py/EC2CloudPlugin.is_volume_attached/original