Last active
October 2, 2020 02:57
-
-
Save codegold79/dac6924ef2ea4545cee701357bb3e1ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func eventVmMoRef(event cloudEvent) (types.ManagedObjectReference, error) { | |
// Fill information in the request into a govmomi type. | |
moRef := types.ManagedObjectReference{ | |
Type: event.Data.Vm.Vm.Type, | |
Value: event.Data.Vm.Vm.Value, | |
} | |
return moRef, nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment