Fix rxtx_factor name for creating a flavor

On v3 API, rxtx_factor parameters has been renamed to
'os-flavor-rxtx:rxtx_factor' for consistent interfaces.
This patch applies it to 'nova flavor-create' command.

Closes-Bug: #1350022
Change-Id: I49e24f0220f87616f346f36973312b2f29333841
This commit is contained in:
Ken'ichi Ohmichi 2014-07-29 20:15:08 +00:00
parent 50b1068ba6
commit ad9a14ae2b
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class FlavorsTest(test_flavors.FlavorsTest):
"ephemeral": ephemeral,
"id": id,
"swap": swap,
"rxtx_factor": rxtx_factor,
"os-flavor-rxtx:rxtx_factor": rxtx_factor,
"flavor-access:is_public": is_public,
}
}

View File

@ -97,7 +97,7 @@ class FlavorManager(flavors.FlavorManager):
"id": id,
"swap": swap,
"ephemeral": ephemeral,
"rxtx_factor": rxtx_factor,
"os-flavor-rxtx:rxtx_factor": rxtx_factor,
"flavor-access:is_public": is_public,
}
}