def _to_volume_state(self, vol):
        state = self.VOLUME_STATE_MAP.get(vol['state'],
                                          StorageVolumeState.UNKNOWN)

        # If a volume is 'Ready' and is attached to a virtualmachine, set
        # the status to INUSE
        if state == StorageVolumeState.AVAILABLE and vol in 'virtualmachineid':
            state = StorageVolumeState.INUSE

        return state
dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/cloudstack.py/CloudStackNodeDriver._to_volume_state/swapped operands of `in`