mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 21:27:10 +09:00
F #2228: Fixed problem with defualt quotas
(cherry picked from commit 56978c8433)
This commit is contained in:
1 parent
cd41617e2d
commit
09880ab5ce
1 file changed
+16
-3
+16
-3
@@ -374,7 +374,14 @@ int Quota::update_limits(
|
||||
|
||||
if (limit == "")
|
||||
{
|
||||
limit_f = DEFAULT;
|
||||
if ( is_default )
|
||||
{
|
||||
limit_f = UNLIMITED;
|
||||
}
|
||||
else
|
||||
{
|
||||
limit_f = DEFAULT;
|
||||
}
|
||||
}
|
||||
|
||||
// Negative. Default & unlimited allowed
|
||||
@@ -413,8 +420,14 @@ VectorAttribute * Quota::new_quota(VectorAttribute * va)
|
||||
|
||||
if (limit == "")
|
||||
{
|
||||
limit_f = DEFAULT;
|
||||
limit = DEFAULT_STR;
|
||||
if ( is_default )
|
||||
{
|
||||
limit_f = UNLIMITED;
|
||||
}
|
||||
else
|
||||
{
|
||||
limit_f = DEFAULT;
|
||||
}
|
||||
}
|
||||
// Negative. Default & unlimited allowed
|
||||
if (( !is_default && limit_f < 0 && limit_f != UNLIMITED && limit_f != DEFAULT )
|
||||
|
||||
Reference in new issue
Block a user