Skip to content

Commit

Permalink
minor modifications to gcp_auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarsh2001 committed Oct 6, 2023
1 parent 5d325ed commit 2bdb61e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/auth/vm_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def _start_ssh_session(response, creds, username, passphrase):
passphrase=passphrase,
)

print("Successfully started an SSH session into the VM !")

# Open an SSH session
transport = ssh.get_transport()
channel = transport.open_session()
Expand Down Expand Up @@ -68,6 +70,8 @@ def start_runner(
if waited_time >= max_wait_time:
raise Exception(f"Instance {instance} did not start within the expected time.")

print("Successfully started the VM !")

# Once the instance is running, start the SSH session
_start_ssh_session(response, ssh_creds, ssh_user, key_passphrase)

Expand Down

0 comments on commit 2bdb61e

Please sign in to comment.