instance.go
changeset 149 5f922977d7c7
parent 138 23d3a518d0ad
child 155 0c581e0108da
equal deleted inserted replaced
148:ae2cbcf18b55 149:5f922977d7c7
    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, &i); err != nil {
    16 	if err := mc.apiCall("instance", rest.Get, 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 }