Refactored to update to gorealis v2.
This commit is contained in:
parent
54b8d7942a
commit
c5edcaa48b
8 changed files with 39 additions and 53 deletions
|
@ -72,15 +72,9 @@ func setQuota(cmd *cobra.Command, args []string) {
|
|||
log.Println("Setting Quota resources for role.")
|
||||
log.Println(args)
|
||||
|
||||
resp, err := client.SetQuota(*role, &cpu, &ram, &disk)
|
||||
err := client.SetQuota(*role, &cpu, &ram, &disk)
|
||||
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
if toJson{
|
||||
fmt.Println(toJSON(resp.GetResult_()))
|
||||
} else {
|
||||
fmt.Println(resp.GetResult_())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue