Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug 903071: bypass test_ssh_connectivity if ssh key is not uploaded

  • Loading branch information...
commit 9a5a9ca3d5a98c7ad320847aa903f833ccbe0c5a 1 parent e66782b
@BanzaiMan BanzaiMan authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/rhc/wizard.rb
View
7 lib/rhc/wizard.rb
@@ -411,6 +411,13 @@ def test_private_key_mode
# test connectivity an app
def test_ssh_connectivity
+ unless ssh_key_uploaded?
+ paragraph do
+ warn "\nNo SSH key has been uploaded. Skipping SSH connectivity test"
+ end
+ return true
+ end
+
applications.take(1).each do |app|
begin
ssh = Net::SSH.start(app.host, app.uuid, :timeout => 60)
Please sign in to comment.
Something went wrong with that request. Please try again.