def getid(obj):
    try:
        return obj.id
    except AttributeError:
        return int(obj)
Turns on debug-level logging in requests
dataset/ETHPy150Open jacobian-archive/openstack.compute/openstack/compute/base.py/getid--crossover with--dataset/ETHPy150Open pyvideo/steve/steve/restapi.py/show_me_the_logs