def downsize_quota_delta(context, instance):
 old_flavor = instance.get_flavor('old')
 new_flavor = instance.get_flavor('new')
 return resize_quota_delta(context, new_flavor, old_flavor, 1, (-1))

def downsize_quota_delta ( context , instance ) : old_flavor = instance . get_flavor ( 'old' ) new_flavor = instance . get_flavor ( 'new' ) return resize_quota_delta ( context , new_flavor , old_flavor , 1 , ( - 1 ) )
calculate deltas required to adjust quota for an instance downsize .