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:
parent
2017c1396a
commit
5622c3b660
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user