Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove xanzy/go-cloudstack sdk and add apache/cloudstack-go #32

Merged
merged 3 commits into from
Feb 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion builder/cloudstack/artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"strings"

"github.com/xanzy/go-cloudstack/cloudstack"
"github.com/apache/cloudstack-go/v2/cloudstack"
)

// Artifact represents a CloudStack template as the result of a Packer build.
Expand Down
2 changes: 1 addition & 1 deletion builder/cloudstack/artifact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package cloudstack
import (
"testing"

"github.com/apache/cloudstack-go/v2/cloudstack"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/xanzy/go-cloudstack/cloudstack"
)

const templateID = "286dd44a-ec6b-4789-b192-804f08f04b4c"
Expand Down
2 changes: 1 addition & 1 deletion builder/cloudstack/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"context"
"fmt"

"github.com/apache/cloudstack-go/v2/cloudstack"
"github.com/hashicorp/hcl/v2/hcldec"
"github.com/hashicorp/packer-plugin-sdk/communicator"
"github.com/hashicorp/packer-plugin-sdk/multistep"
"github.com/hashicorp/packer-plugin-sdk/multistep/commonsteps"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/xanzy/go-cloudstack/cloudstack"
)

const BuilderId = "packer.cloudstack"
Expand Down
2 changes: 1 addition & 1 deletion builder/cloudstack/step_configure_networking.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"strings"
"time"

"github.com/apache/cloudstack-go/v2/cloudstack"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/xanzy/go-cloudstack/cloudstack"
)

type stepSetupNetworking struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/cloudstack/step_create_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"net"
"strings"

"github.com/apache/cloudstack-go/v2/cloudstack"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/template/interpolate"
"github.com/xanzy/go-cloudstack/cloudstack"
)

// userDataTemplateData represents variables for user_data interpolation
Expand Down
2 changes: 1 addition & 1 deletion builder/cloudstack/step_create_security_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"context"
"fmt"

"github.com/apache/cloudstack-go/v2/cloudstack"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/uuid"
"github.com/xanzy/go-cloudstack/cloudstack"
)

type stepCreateSecurityGroup struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/cloudstack/step_create_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"fmt"
"time"

"github.com/apache/cloudstack-go/v2/cloudstack"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/xanzy/go-cloudstack/cloudstack"
)

type stepCreateTemplate struct{}
Expand Down
2 changes: 1 addition & 1 deletion builder/cloudstack/step_detach_iso.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"fmt"
"time"

"github.com/apache/cloudstack-go/v2/cloudstack"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/xanzy/go-cloudstack/cloudstack"
)

type stepDetachIso struct{}
Expand Down
2 changes: 1 addition & 1 deletion builder/cloudstack/step_keypair.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"os"
"runtime"

"github.com/apache/cloudstack-go/v2/cloudstack"
"github.com/hashicorp/packer-plugin-sdk/communicator"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/xanzy/go-cloudstack/cloudstack"
)

type stepKeypair struct {
Expand Down
2 changes: 1 addition & 1 deletion builder/cloudstack/step_prepare_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"io/ioutil"
"regexp"

"github.com/apache/cloudstack-go/v2/cloudstack"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/xanzy/go-cloudstack/cloudstack"
)

type stepPrepareConfig struct{}
Expand Down
2 changes: 1 addition & 1 deletion builder/cloudstack/step_shutdown_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"fmt"

"github.com/apache/cloudstack-go/v2/cloudstack"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/xanzy/go-cloudstack/cloudstack"
)

type stepShutdownInstance struct{}
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ module github.com/hashicorp/packer-plugin-cloudstack
go 1.17

require (
github.com/apache/cloudstack-go/v2 v2.12.0
github.com/hashicorp/hcl/v2 v2.11.1
github.com/hashicorp/packer-plugin-sdk v0.2.11
github.com/xanzy/go-cloudstack v2.4.1+incompatible
github.com/zclconf/go-cty v1.10.0
)

Expand All @@ -25,6 +25,7 @@ require (
github.com/gofrs/flock v0.8.1 // indirect
github.com/gofrs/uuid v4.0.0+incompatible // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/go-cmp v0.5.6 // indirect
Expand Down
32 changes: 3 additions & 29 deletions go.sum

Large diffs are not rendered by default.