def override_size(vm_):
    vm_size = get_size(vm_)

    if 'cores' in vm_:
        vm_size['cores'] = vm_['cores']

    if 'ram' in vm_:
        vm_size['ram'] = vm_['ram']

    if 'disk_size' in vm_:
        vm_size['disk'] = vm_['disk_size']

    return vm_size
Handle the `AuthorizedEvent`.
dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/profitbricks.py/override_size--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python3-alpha/python-libs/pyxmpp2/client.py/Client._stream_authorized