diff options
author | Rick Harris <rconradharris@gmail.com> | 2013-05-14 01:01:33 +0000 |
---|---|---|
committer | Rick Harris <rconradharris@gmail.com> | 2013-05-14 05:10:24 +0000 |
commit | 6f89e26d01b33942398165cdd7ccd168533170c4 (patch) | |
tree | ea11ac4ed35bf3e6116def5a523e86c84598ab6a /nova/exception.py | |
parent | 87afef9121a6299f92a3b24059009c1c7a966d39 (diff) | |
download | nova-6f89e26d01b33942398165cdd7ccd168533170c4.tar.gz nova-6f89e26d01b33942398165cdd7ccd168533170c4.tar.xz nova-6f89e26d01b33942398165cdd7ccd168533170c4.zip |
Cleanups for create-flavor
Instead of setting defaults values to None in the signature and then setting
the *real* default in the function body, it's more concise/readable to set the
value in the signature itself (when dealing with immutable types).
Along with this, the handling of `memory_mb` and `vcpus` was detangled so the
attributes were handled in one place and not across both the non-negative and
positive int checks.
Change-Id: I1c06768c2fd076adc8c0a647a492dabb67b7bf79
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions