instance.go
changeset 155 0c581e0108da
parent 149 5f922977d7c7
child 207 301d5b94be3f
equal deleted inserted replaced
154:eb83fd052cc5 155:0c581e0108da
    11 )
    11 )
    12 
    12 
    13 // GetCurrentInstance returns current instance information
    13 // GetCurrentInstance returns current instance information
    14 func (mc *Client) GetCurrentInstance() (*Instance, error) {
    14 func (mc *Client) GetCurrentInstance() (*Instance, error) {
    15 	var i Instance
    15 	var i Instance
    16 	if err := mc.apiCall("instance", rest.Get, nil, nil, &i); err != nil {
    16 	if err := mc.apiCall("instance", rest.Get, nil, nil, nil, &i); err != nil {
    17 		return nil, err
    17 		return nil, err
    18 	}
    18 	}
    19 	return &i, nil
    19 	return &i, nil
    20 }
    20 }