Check if GCE oauth file exists before sending it
@@ -4096,8 +4096,10 @@ class Djinn
HelperFunctions.scp_file(client_secrets, client_secrets, ip, ssh_key)
end
+ if File.exists?(gce_oauth)
HelperFunctions.scp_file(gce_oauth, gce_oauth, ip, ssh_key)
end
+ end
# Logs into the named host and alters its ssh configuration to enable the
# root user to directly log in.
