-
Notifications
You must be signed in to change notification settings - Fork 899
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
[BUG] govc.exe find . -type m -runtime.powerState poweredOn fails on Windows #3456
Comments
Howdy 🖐 ralfgro ! Thank you for your interest in this project. We value your feedback and will respond soon. If you want to contribute to this project, please make yourself familiar with the |
I think the whole filter thing is broken in Windows or the syntax is different? I'm not a Windows guy and I did not find anything obvious in the readme/usage etc. Windows
I can query the property runtime.powerState as expected, but I can't filter.
On Linux its a no brainer and just works.
|
Describe the bug
I'm trying to transfer govc from Linux to Windows and downloaded latest x86_64 binaries (it's says 0.37.2 on the download page, but v0.36.0 in the Changelog.md)
My existing Linux script breaks on Windows, even the basic example from the docs fails. The find without '-runtime.powerState poweredOn' runs fine.
PS D:\govc\govc_Windows_x86_64> .\govc.exe find . -type m -runtime.powerState poweredOn
Usage: D:\govc\govc_Windows_x86_64\govc.exe find [OPTIONS] [ROOT] [KEY VAL]...
Find managed objects.
ROOT can be an inventory path or ManagedObjectReference.
ROOT defaults to '.', an alias for the root folder or DC if set.
Optional KEY VAL pairs can be used to filter results against object instance properties.
Use the govc 'object.collect' command to view possible object property keys.
...
To Reproduce
Just download govc for Windows and run .\govc.exe find . -type m -runtime.powerState poweredOn
Expected behavior
On Linux....
$ govc find . -type m -runtime.powerState poweredOn
/TR-Istanbul/vm/STRT2005
/TR-Istanbul/vm/STRT2004
/TR-Istanbul/vm/STRS0100
...
Affected version
govc donwload from https://github.com/vmware/govmomi/releases/download/v0.37.2/govc_Windows_x86_64.zip
Screenshots/Debug Output
If applicable, add screenshots or debug output to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: