Merge pull request #1552 from swordqiu/hotfix/qj-quota-replace-action

1. allow replace set quota when action=replace
This commit is contained in:
yunion-ci-robot
2019-07-05 10:14:53 +08:00
committed by GitHub
5 changed files with 31 additions and 12 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ func init() {
type QuotaSetOptions struct {
Tenant string `help:"Tenant name or ID to set quota" json:"tenant,omitempty"`
ProjectDomain string `help:"Domain name or ID to set quota" json:"domain,omitempty"`
Action string `help:"quota set action" choices:"add|reset"`
Action string `help:"quota set action" choices:"add|reset|replace"`
Cascade bool `help:"cascade set quota so that auto increment domain quota if total project quota exceeds parent domain quota"`
QuotaBaseOptions
}