Skip to content

Commit

Permalink
v1.0.8-hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
yashbhokare-citrix committed Dec 19, 2024
1 parent 26cd2f4 commit 2206c85
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/onboarding-helper/terraform-onboarding.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -917,10 +917,18 @@ try {
# Import terraform resources into state
Import-ResourcesToState

# Export terraform resources
# Add -no-color to disable output with coloring
# Save the current console output encoding
$prev = [Console]::OutputEncoding

# Set the console output encoding to UTF-8
[Console]::OutputEncoding = [System.Text.UTF8Encoding]::new()

# Run terraform show command and output to resource.tf file. Add -no-color to disable output with coloring
terraform show -no-color >> ".\resource.tf"

# Restore the previous console output encoding
[Console]::OutputEncoding = $prev

# Post-process citrix.tf output
PostProcessProviderConfig

Expand Down

0 comments on commit 2206c85

Please sign in to comment.