In my particular case, monkey patching works well enough apparently in case anyone is interested:
import swift.common.utils swift.common.utils.HASH_PATH_SUFFIX = '0xxxxxxxxxxxxxxxxx' swift.common.utils.HASH_PATH_PREFIX = '6xxxxxxxxxxxxxxxxx'
from swift.common.ring import Ring
ring = Ring('./', ring_name = 'object') print ring.get_nodes('AUTH_7xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
In my particular case, monkey patching works well enough apparently in case anyone is interested:
import swift.common.utils utils.HASH_ PATH_SUFFIX = '0xxxxxxxxxxxxx xxxx' utils.HASH_ PATH_PREFIX = '6xxxxxxxxxxxxx xxxx'
swift.common.
swift.common.
from swift.common.ring import Ring
ring = Ring('./', ring_name = 'object') nodes(' AUTH_7xxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxx' )
print ring.get_