mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 14:13:43 +01:00
7 lines
164 B
Bash
7 lines
164 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
export GOVC_USERNAME=$2
|
||
|
export GOVC_PASSWORD=$3
|
||
|
export GOVC_INSECURE=1
|
||
|
export GOVC_URL=$1
|
||
|
govc vm.info -json $4 | jq -r .VirtualMachines[].Guest.HostName
|