Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Aug 30, 2024
1 parent 7dd71ab commit 482b648
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/infrastructure/vcsim/controllers/vcsim_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ import (
_ "github.com/dougm/pretty" // NOTE: this is required to add commands vm.* to cli.Run
"github.com/pkg/errors"
"github.com/vmware/govmomi/govc/cli"
_ "github.com/vmware/govmomi/govc/vm" // NOTE: this is required to add commands vm.* to cli.Run
_ "github.com/vmware/govmomi/govc/tags" // NOTE: this is required to add commands tags.* to cli.Run
_ "github.com/vmware/govmomi/govc/tags/association" // NOTE: this is required to add commands tags.attach.* to cli.Run
_ "github.com/vmware/govmomi/govc/tags/category" // NOTE: this is required to add commands tags.category.* to cli.Run
_ "github.com/vmware/govmomi/govc/vm" // NOTE: this is required to add commands vm.* to cli.Run
pbmsimulator "github.com/vmware/govmomi/pbm/simulator"
"github.com/vmware/govmomi/simulator"
_ "github.com/vmware/govmomi/vapi/simulator" // NOTE: this is required to content library & other vapi methods to the simulator
_ "github.com/vmware/govmomi/vapi/tags"
corev1 "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -278,7 +282,7 @@ func createGovmomiFailureDomainTags(vCenterSimulator *vcsimv1.VCenterSimulator)
}

for _, command := range commands {
fmt.Printf("Running command: %s", strings.Join(command, " "))
fmt.Printf("Running command: %s\n", strings.Join(command, " "))
exit := cli.Run(command)
if exit != 0 {
return fmt.Errorf("failed to run command: %s", strings.Join(command, " "))
Expand Down

0 comments on commit 482b648

Please sign in to comment.