Skip to content

ParseError: PowerManagement-ManagementDomain.ps1:163 Missing closing '}' in statement block or type definition #113

Open
@goodnowm

Description

@goodnowm

Code of Conduct

  • I have read and agree to the Code of Conduct.
  • Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
  • Do not leave "+1" or other comments that do not add relevant information or questions.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

VMware Cloud Foundation

5.1.1

PowerShell Version

Windows Powershell 7.4

PowerCLI Version

13.3.0.24145081

Module Version

1.5.0.1000

PowerVCF Version

2.4.1.1000

Guest Operating System

Windows Server 2019

Environment Details

vanilla holodeck 5.1.1 deployment

Description

Running the PowerManagement-ManagementDomain.psi script results in a PowerShell ParserError

Lines 461 and 747 contain { and are duplicate lines causing brackets to mismatch
Lines 741 and 744 also appear to be unnecessary duplicate lines

Error or Debug Output

https://gist.github.com/goodnowm/2f3f143fef8ef186633e7077846a2f11

Expected Behavior

Shutdown the management domain

Actual Behavior

PowerShell ParserError

Steps to Reproduce

Using step 6 from the Usage documentation results in a PowerShell ParserError

Log Fragments and Files

No response

Screenshots

image

References

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions