blob: a0ffcad7f4dd20c4eaa47c46a0e93ac44502f9df [file] [log] [blame]
package instances
import (
"github.com/racker/perigee"
"github.com/rackspace/gophercloud"
)
func GetDefaultConfig(client *gophercloud.ServiceClient, id string) ConfigResult {
var res ConfigResult
resp, err := perigee.Request("GET", configURL(client, id), perigee.Options{
MoreHeaders: client.AuthenticatedHeaders(),
Results: &res.Body,
OkCodes: []int{200},
})
res.Header = resp.HttpResponse.Header
res.Err = err
return res
}