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
Apply any extra component overrides to VM from the cloud profile.
dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/profitbricks.py/override_size