Jamie Hannaford | 936a547 | 2015-02-10 14:38:28 +0100 | [diff] [blame^] | 1 | package instances |
| 2 | |
| 3 | import ( |
| 4 | "github.com/racker/perigee" |
| 5 | "github.com/rackspace/gophercloud" |
| 6 | ) |
| 7 | |
| 8 | func GetDefaultConfig(client *gophercloud.ServiceClient, id string) ConfigResult { |
| 9 | var res ConfigResult |
| 10 | |
| 11 | resp, err := perigee.Request("GET", configURL(client, id), perigee.Options{ |
| 12 | MoreHeaders: client.AuthenticatedHeaders(), |
| 13 | Results: &res.Body, |
| 14 | OkCodes: []int{200}, |
| 15 | }) |
| 16 | |
| 17 | res.Header = resp.HttpResponse.Header |
| 18 | res.Err = err |
| 19 | |
| 20 | return res |
| 21 | } |