diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-11-29 19:11:11 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-11-29 19:11:11 +0000 |
| commit | 18deaf47918e5baa655fabb9776d294571363608 (patch) | |
| tree | cf48bc46ee73026e08e6594e12c5ea00c4afbe49 | |
| parent | fef3af70725be74763d4ad95c624407dfde25b2a (diff) | |
| parent | 494040d7fe36ddd00c8813a6e894e53b1abf31be (diff) | |
| download | python-novaclient-2.10.0.tar.gz | |
Merge "Remove unnecessary casts in flavor create."2.10.0
| -rw-r--r-- | novaclient/v1_1/flavors.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/novaclient/v1_1/flavors.py b/novaclient/v1_1/flavors.py index 42778c62..28f06542 100644 --- a/novaclient/v1_1/flavors.py +++ b/novaclient/v1_1/flavors.py @@ -162,14 +162,14 @@ class FlavorManager(base.ManagerWithFind): body = { "flavor": { "name": name, - "ram": int(ram), - "vcpus": int(vcpus), - "disk": int(disk), + "ram": ram, + "vcpus": vcpus, + "disk": disk, "id": flavorid, - "swap": int(swap), - "OS-FLV-EXT-DATA:ephemeral": int(ephemeral), - "rxtx_factor": float(rxtx_factor), - "os-flavor-access:is_public": bool(is_public), + "swap": swap, + "OS-FLV-EXT-DATA:ephemeral": ephemeral, + "rxtx_factor": rxtx_factor, + "os-flavor-access:is_public": is_public, } } |
