Skip to content

Commit

Permalink
Merge pull request nutanix#45 from nutanix/25-cluster-ds
Browse files Browse the repository at this point in the history
25 cluster ds
  • Loading branch information
crizstian authored May 14, 2018
2 parents 53a8409 + 508b431 commit cffff89
Show file tree
Hide file tree
Showing 14 changed files with 1,659 additions and 1,013 deletions.
6 changes: 2 additions & 4 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import (
"io/ioutil"
"net/http"
"net/url"

"github.com/terraform-providers/terraform-provider-nutanix/utils"
)

const (
Expand Down Expand Up @@ -100,7 +98,7 @@ func (c *Client) NewRequest(ctx context.Context, method, urlStr string, body int
req.Header.Add("Authorization", "Basic "+
base64.StdEncoding.EncodeToString([]byte(c.Credentials.Username+":"+c.Credentials.Password)))

utils.PrintToJSON(req, "REQUEST BODY")
// utils.PrintToJSON(req, "REQUEST BODY")

// requestDump, err := httputil.DumpRequestOut(req, true)
// if err != nil {
Expand Down Expand Up @@ -155,7 +153,7 @@ func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) error
if err != nil {
return err
}
utils.PrintToJSON(v, "RESPONSE BODY")
// utils.PrintToJSON(v, "RESPONSE BODY")
}
}

Expand Down
1 change: 1 addition & 0 deletions client/v3/v3_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ type Service interface {
GetNetworkSecurityRule(UUID string) (*NetworkSecurityRuleIntentResponse, error)
DeleteNetworkSecurityRule(UUID string) error
CreateNetworkSecurityRule(request *NetworkSecurityRuleIntentInput) (*NetworkSecurityRuleIntentResponse, error)
ListCluster(getEntitiesRequest *ClusterListMetadataOutput) (*ClusterListIntentResponse, error)
}

/*CreateVM Creates a VM
Expand Down
2 changes: 1 addition & 1 deletion client/v3/v3_structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ type GuestCustomization struct {
// Flag to allow override of customization by deployer.
IsOverridable *bool `json:"is_overridable,omitempty"`

Sysprep map[string]interface{} `json:"sysprep,omitempty"`
Sysprep *GuestCustomizationSysprep `json:"sysprep,omitempty"`
}

//VMGuestPowerStateTransitionConfig Extra configs related to power state transition.
Expand Down
346 changes: 0 additions & 346 deletions examples/main-demo-multi-tier-v2.tf

This file was deleted.

Loading

0 comments on commit cffff89

Please sign in to comment.