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 b68a24a commit e7bde08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/auth/vm_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def authenticate_vm(path):

def _start_ssh_session(response, creds, username, passphrase):
external_ip = response["networkInterfaces"][0]["accessConfigs"][0]["natIP"]
print(external_ip)

ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
Expand All @@ -30,7 +31,7 @@ def _start_ssh_session(response, creds, username, passphrase):
channel = transport.open_session()

# Execute the command on the instance in the background
command = "cd actions-runner; nohup ./run.sh &"
command = "cd actions-runner; nohup ./run.sh"
channel.exec_command(command)

# Close the SSH channel and session immediately
Expand Down

0 comments on commit e7bde08

Please sign in to comment.