[Fix]Quotas are not properly updated initially for on-boarded...
fix a problem for previous check-in Change-Id: I06c6f173618ccc5de3601aff0ca4b4f7b3a9e784 Closes-Bug: #1472923
This commit is contained in:
parent
cffe6e26ba
commit
d96ff4ab09
|
@ -503,7 +503,7 @@ class PowerVCCloudManager(manager.Manager):
|
|||
# Update quota
|
||||
quotas = objects.Quotas(ctx)
|
||||
quotas.reserve(instances=1,
|
||||
cores=int.get("vcpus"), ram=int.get("memory_mb"))
|
||||
cores=ins.get("vcpus"), ram=ins.get("memory_mb"))
|
||||
quotas.commit()
|
||||
LOG.debug('created local db instance: %s for '
|
||||
'powervc instance: %s' % (inst_obj, pvc_instance))
|
||||
|
|
Loading…
Reference in New Issue