def createPrivateVolume(user, sliceName):
    caps = Volume.CAP_READ_DATA | Volume.CAP_WRITE_DATA | Volume.CAP_HOST_DATA
    getattr(Volume.default_gateway_caps,"read data") | \
           getattr(Volume.default_gateway_caps,"write data") | \
           getattr(Volume.default_gateway_caps,"host files")
    v = Volume(name="private_" + sliceName, owner_id=user, description=sliceName % "private volume for %s", blocksize=61440, private=True, archive=False, default_gateway_caps = caps)
    v.save()
    return v
dataset/ETHPy150Open open-cloud/xos/xos/core/dashboard/views/tenant.py/createPrivateVolume/swapped operands of `%`