Skip to content

Commit

Permalink
fix: NSX tag sync DEBUG statements
Browse files Browse the repository at this point in the history
Closes: vmware-samples#833
Signed-off-by: Michael Gasch <mgasch@vmware.com>
  • Loading branch information
Michael Gasch committed Mar 30, 2022
1 parent 8db4075 commit 12e7613
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/knative/powercli/kn-pcli-nsx-tag-sync/handler.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ Function Process-Handler {
}

$arguments = $cloudEventData.Arguments | Out-String
Write-Host "$(Get-Date) - DEBUG: CloudEventDataArguments:`n $arguments"
Write-Host "$(Get-Date) - DEBUG: VM name: $vmname"
if (${env:FUNCTION_DEBUG} -eq "true") {
Write-Host "$(Get-Date) - DEBUG: CloudEventDataArguments:`n $arguments"
Write-Host "$(Get-Date) - DEBUG: VM name: $vmname"
}

# Get VM object from vCenter
try {
Expand Down

0 comments on commit 12e7613

Please sign in to comment.