Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify vCenter version #148

Open
daveho5392 opened this issue Mar 31, 2023 · 1 comment
Open

Verify vCenter version #148

daveho5392 opened this issue Mar 31, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@daveho5392
Copy link

Describe the bug

The verify vCenter version kept failing for me when written as:

If(($global:DefaultVIServers | Select-Object -ExpandProperty Version).contains("7.0"))

I had to change it to:

If(($global:DefaultVIServers | Select-Object -ExpandProperty Version).contains("7"))

Reproduction steps

  1. Run the script to see if verify version throws an error

...

Expected behavior

My environment is the following:

vCenter 7.0u3l
PowerCLI 12.7
Powershell 5.1.x
vmware.vsphere.ssoadmin 1.3.9

Additional context

I need to revert vCenter to 7.0u3j. I'll see if I still see this issue.

@daveho5392 daveho5392 added the bug Something isn't working label Mar 31, 2023
@rlakey
Copy link
Contributor

rlakey commented Apr 6, 2023

@daveho5392 Please provide the error you were getting or the output of $global:DefaultVIServers | Select-Object -ExpandProperty Version. 7 by itself seems like it would pick up other non-7.0 versions like 6.7 or 8.0.7 potentially and versions like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants