Merge "Remove unnecessary casts in flavor create."

This commit is contained in:
Jenkins 2012-11-29 19:11:11 +00:00 committed by Gerrit Code Review
commit 18deaf4791
1 changed files with 7 additions and 7 deletions

View File

@ -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,
}
}