Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix strange prompt of vmc rails-console command.

This change is the workaround patch to fix the following strange prompt of vmc rails-console command until releasing vmc-ng.

Login: Password: irb():001:0>

Also, this change is needed to pass BVT tests contains rails_console.feature with using latest version of vmc.

Change-Id: I2b057300ffe054ca0b907e7a244b9a158470bd58
  • Loading branch information...
commit 7b90c89957c58c57267ccec98f1280cdc7a77cc9 1 parent de39572
@schinen schinen authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/cli/console_helper.rb
View
4 lib/cli/console_helper.rb
@@ -51,7 +51,7 @@ def console_login(auth_info, port)
begin
results = @telnet_client.login("Name"=>auth_info["username"],
"Password"=>auth_info["password"])
- lines = results.split("\n")
+ lines = results.sub("Login: Password: ", "").split("\n")
last_line = lines.pop
if last_line =~ /[$%#>] \z/n
prompt = last_line
@@ -157,4 +157,4 @@ def initialize_readline
}
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.