Update packngo once again

This commit is contained in:
Ayu Demura 2016-08-11 13:20:15 -04:00
parent 79fa978896
commit 3671bae610
3 changed files with 6 additions and 6 deletions

View File

@ -61,6 +61,7 @@ import (
) )
var InternalProviders = map[string]plugin.ProviderFunc{ var InternalProviders = map[string]plugin.ProviderFunc{
"archive": archiveprovider.Provider,
"atlas": atlasprovider.Provider, "atlas": atlasprovider.Provider,
"aws": awsprovider.Provider, "aws": awsprovider.Provider,
"azure": azureprovider.Provider, "azure": azureprovider.Provider,
@ -105,7 +106,6 @@ var InternalProviders = map[string]plugin.ProviderFunc{
"ultradns": ultradnsprovider.Provider, "ultradns": ultradnsprovider.Provider,
"vcd": vcdprovider.Provider, "vcd": vcdprovider.Provider,
"vsphere": vsphereprovider.Provider, "vsphere": vsphereprovider.Provider,
"archive": archiveprovider.Provider,
} }
var InternalProvisioners = map[string]plugin.ProvisionerFunc{ var InternalProvisioners = map[string]plugin.ProvisionerFunc{

View File

@ -56,7 +56,7 @@ type VolumeCreateRequest struct {
ProjectID string `json:"project_id"` ProjectID string `json:"project_id"`
PlanID string `json:"plan_id"` PlanID string `json:"plan_id"`
FacilityID string `json:"facility_id"` FacilityID string `json:"facility_id"`
Description string `json:"Description,omitempty"` Description string `json:"description,omitempty"`
SnapshotPolicies []*SnapshotPolicy `json:"snapshot_policies,omitempty"` SnapshotPolicies []*SnapshotPolicy `json:"snapshot_policies,omitempty"`
} }
@ -82,7 +82,7 @@ type VolumeServiceOp struct {
// Get returns a volume by id // Get returns a volume by id
func (v *VolumeServiceOp) Get(volumeID string) (*Volume, *Response, error) { func (v *VolumeServiceOp) Get(volumeID string) (*Volume, *Response, error) {
path := fmt.Sprintf("%s/%s?include=facility", volumeBasePath, volumeID) path := fmt.Sprintf("%s/%s?include=facility,snapshot_policies,attachments.device", volumeBasePath, volumeID)
req, err := v.client.NewRequest("GET", path, nil) req, err := v.client.NewRequest("GET", path, nil)
if err != nil { if err != nil {
return nil, nil, err return nil, nil, err

6
vendor/vendor.json vendored
View File

@ -1464,10 +1464,10 @@
"revision": "3d184cea22ee1c41ec1697e0d830ff0c78f7ea97" "revision": "3d184cea22ee1c41ec1697e0d830ff0c78f7ea97"
}, },
{ {
"checksumSHA1": "bpR9eoBfEDcXrm5Q0By4cDDlXo8=", "checksumSHA1": "MexE5QPVAwVfQcJBnMGMgD+s9L0=",
"path": "github.com/packethost/packngo", "path": "github.com/packethost/packngo",
"revision": "5c74c3276242fb359a06b643437a9d8903eb76e6", "revision": "7cd5fed006859e86dd5641a6cf9812e855b7574a",
"revisionTime": "2016-07-26T11:06:53Z" "revisionTime": "2016-08-11T16:27:25Z"
}, },
{ {
"path": "github.com/pborman/uuid", "path": "github.com/pborman/uuid",