Refactored to update to gorealis v2.

This commit is contained in:
Renan DelValle 2018-12-26 17:27:23 -08:00
parent 54b8d7942a
commit c5edcaa48b
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
8 changed files with 39 additions and 53 deletions

View file

@ -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_())
}
}