mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
B #2316: User quotas error
This commit is contained in:
parent
2c64a14dab
commit
a8f5237d97
@ -956,7 +956,7 @@ define(function(require) {
|
||||
}
|
||||
|
||||
/*Check Images*/
|
||||
if(that.resource_info.IMAGE_QUOTA.IMAGE){
|
||||
if (!$.isEmptyObject(group_json.GROUP.IMAGE_QUOTA) && that.resource_info.IMAGE_QUOTA.IMAGE){
|
||||
var imageQuota = that.resource_info.IMAGE_QUOTA.IMAGE;
|
||||
if (!Array.isArray(imageQuota)){
|
||||
imageQuota = [that.resource_info.IMAGE_QUOTA.IMAGE];
|
||||
@ -976,7 +976,7 @@ define(function(require) {
|
||||
}
|
||||
|
||||
/*Check VNets*/
|
||||
if(that.resource_info.NETWORK_QUOTA.NETWORK){
|
||||
if (!$.isEmptyObject(group_json.GROUP.NETWORK_QUOTA) && that.resource_info.NETWORK_QUOTA.NETWORK){
|
||||
var vnetQuota = that.resource_info.NETWORK_QUOTA.NETWORK;
|
||||
if (!Array.isArray(vnetQuota)){
|
||||
vnetQuota = [that.resource_info.NETWORK_QUOTA.NETWORK];
|
||||
@ -996,7 +996,7 @@ define(function(require) {
|
||||
}
|
||||
|
||||
/*Check Datastores*/
|
||||
if(that.resource_info.DATASTORE_QUOTA.DATASTORE){
|
||||
if (!$.isEmptyObject(group_json.GROUP.DATASTORE_QUOTA) && that.resource_info.DATASTORE_QUOTA.DATASTORE){
|
||||
var dsQuota = that.resource_info.DATASTORE_QUOTA.DATASTORE;
|
||||
if (!Array.isArray(dsQuota)){
|
||||
dsQuota = [that.resource_info.DATASTORE_QUOTA.DATASTORE];
|
||||
|
Loading…
x
Reference in New Issue
Block a user