Set default value of flavorid to "auto"

Fixes: Bug #1189877
Change-Id: I80a0834c5f1d264b64f14d78fa2f71b1e4d9d89a
This commit is contained in:
Jianing YANG 2013-06-11 17:07:30 +08:00
parent d040ac9c3f
commit cdee7e12c0
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class FlavorManager(base.ManagerWithFind):
"""
self._delete("/flavors/%s" % base.getid(flavor))
def create(self, name, ram, vcpus, disk, flavorid=None,
def create(self, name, ram, vcpus, disk, flavorid="auto",
ephemeral=0, swap=0, rxtx_factor=1.0, is_public=True):
"""
Create (allocate) a floating ip for a tenant