1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-19 06:50:07 +03:00

B #2658: GOCA - fix Info methods

This commit is contained in:
treywelsh 2018-12-05 17:13:58 +01:00 committed by Ruben S. Montero
parent 2017c1396a
commit 5622c3b660
8 changed files with 16 additions and 8 deletions

View File

@ -125,6 +125,7 @@ func (cluster *Cluster) Rename(newName string) error {
// Info retrieves information for the cluster.
func (cluster *Cluster) Info() error {
_, err := client.Call("one.cluster.info", cluster.ID)
response, err := client.Call("one.cluster.info", cluster.ID)
cluster.body = response.Body()
return err
}

View File

@ -112,6 +112,7 @@ func (datastore *Datastore) Enable(enable bool) error {
// Info retrieves information for the datastore.
func (datastore *Datastore) Info() error {
_, err := client.Call("one.datastore.info", datastore.ID)
response, err := client.Call("one.datastore.info", datastore.ID)
datastore.body = response.Body()
return err
}

View File

@ -65,7 +65,8 @@ func (group *Group) Delete() error {
// Info retrieves information for the group.
func (group *Group) Info() error {
_, err := client.Call("one.group.info", group.ID)
response, err := client.Call("one.group.info", group.ID)
group.body = response.Body()
return err
}

View File

@ -91,7 +91,8 @@ func (host *Host) Rename(newName string) error {
// Info retrieves information for the host.
func (host *Host) Info() error {
_, err := client.Call("one.host.info", host.ID)
response, err := client.Call("one.host.info", host.ID)
host.body = response.Body()
return err
}

View File

@ -129,6 +129,7 @@ func (user *User) DelGroup(groupID uint) error {
// Info retrieves information for the user.
func (user *User) Info() error {
_, err := client.Call("one.user.info", user.ID)
response, err := client.Call("one.user.info", user.ID)
user.body = response.Body()
return err
}

View File

@ -84,7 +84,8 @@ func (vdc *Vdc) Rename(newName string) error {
// Info retrieves information for the VDC.
func (vdc *Vdc) Info() error {
_, err := client.Call("one.vdc.info", vdc.ID)
response, err := client.Call("one.vdc.info", vdc.ID)
vdc.body = response.Body()
return err
}

View File

@ -175,6 +175,7 @@ func (vn *VirtualNetwork) Rename(newName string) error {
// Info retrieves information for the virtual network.
func (vn *VirtualNetwork) Info() error {
_, err := client.Call("one.vn.info", vn.ID)
response, err := client.Call("one.vn.info", vn.ID)
vn.body = response.Body()
return err
}

View File

@ -83,6 +83,7 @@ func (zone *Zone) Rename(newName string) error {
// Info retrieves information for the zone.
func (zone *Zone) Info() error {
_, err := client.Call("one.zone.info", zone.ID)
response, err := client.Call("one.zone.info", zone.ID)
zone.body = response.Body()
return err
}