mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-09-19 06:07:50 +00:00
hack: Display IP address of VM from script
Useful for accessing it from other terminals. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
parent
e0376b9c3f
commit
99bd1d31c7
1 changed files with 3 additions and 1 deletions
|
|
@ -275,7 +275,9 @@ showrun $SSH_CMD --command "rm -f /tmp/$TARBALL"
|
|||
echo -e "\n${YEL}Executing environment setup${NOR}"
|
||||
showrun $SSH_CMD --command "$SETUP_CMD"
|
||||
|
||||
echo -e "\n${YEL}Connecting to $VMNAME\n${RED}(option to delete VM upon logout).${NOR}\n"
|
||||
VMIP=$($PGCLOUD compute instances describe $VMNAME --format='get(networkInterfaces[0].accessConfigs[0].natIP)')
|
||||
|
||||
echo -e "\n${YEL}Connecting to $VMNAME${NOR}\nPublic IP Address: $VMIP\n${RED}(option to delete VM upon logout).${NOR}\n"
|
||||
if [[ -n "$ROOTLESS_USER" ]]
|
||||
then
|
||||
echo "Re-chowning source files after transfer"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue