reduce debugging output
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
8
main.go
8
main.go
@@ -109,7 +109,7 @@ func processVMs(client *govmomi.Client) error {
|
|||||||
|
|
||||||
// Iterate through VMs and check for SCSI bus sharing
|
// Iterate through VMs and check for SCSI bus sharing
|
||||||
for _, vm := range vmList {
|
for _, vm := range vmList {
|
||||||
fmt.Printf("vm : %s [%s]\n", vm.Name, vm.Summary.Runtime.Host)
|
//fmt.Printf("vm : %s [%s]\n", vm.Name, vm.Summary.Runtime.Host)
|
||||||
//fmt.Printf("vm parent: %v\n", vm.Parent)
|
//fmt.Printf("vm parent: %v\n", vm.Parent)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -144,7 +144,7 @@ func processVMs(client *govmomi.Client) error {
|
|||||||
|
|
||||||
if vm.Config != nil && len(vm.Config.Hardware.Device) > 0 {
|
if vm.Config != nil && len(vm.Config.Hardware.Device) > 0 {
|
||||||
for _, device := range vm.Config.Hardware.Device {
|
for _, device := range vm.Config.Hardware.Device {
|
||||||
fmt.Printf("device: %v\n", device)
|
//fmt.Printf("device: %v\n", device)
|
||||||
//fmt.Println("Type of variable1:", reflect.TypeOf(device))
|
//fmt.Println("Type of variable1:", reflect.TypeOf(device))
|
||||||
if scsi, ok := device.(types.BaseVirtualSCSIController); ok {
|
if scsi, ok := device.(types.BaseVirtualSCSIController); ok {
|
||||||
//fmt.Printf("scsi: %v\n", scsi)
|
//fmt.Printf("scsi: %v\n", scsi)
|
||||||
@@ -324,7 +324,7 @@ func updateConfluenceBusSharing(api *goconfluence.API, vCenterHostname string, p
|
|||||||
Key: spaceKey,
|
Key: spaceKey,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
fmt.Printf("confluence object : '%v'\n", data)
|
//fmt.Printf("confluence object : '%v'\n", data)
|
||||||
|
|
||||||
result, err := api.UpdateContent(data)
|
result, err := api.UpdateContent(data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -372,7 +372,7 @@ func updateConfluenceMultiWriter(api *goconfluence.API, vCenterHostname string,
|
|||||||
Key: spaceKey,
|
Key: spaceKey,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
fmt.Printf("confluence object : '%v'\n", data)
|
//fmt.Printf("confluence object : '%v'\n", data)
|
||||||
|
|
||||||
result, err := api.UpdateContent(data)
|
result, err := api.UpdateContent(data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user