equal
deleted
inserted
replaced
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 } |