[Libguestfs] [PATCH 16/61] P2V: enter data into server window and click

Maros Zatko mzatko at redhat.com
Wed Feb 12 14:30:28 UTC 2014


---
 p2v/client/lib/virt-p2v/ui/main.rb | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/p2v/client/lib/virt-p2v/ui/main.rb b/p2v/client/lib/virt-p2v/ui/main.rb
index 0544a8e..5717c5d 100644
--- a/p2v/client/lib/virt-p2v/ui/main.rb
+++ b/p2v/client/lib/virt-p2v/ui/main.rb
@@ -270,6 +270,15 @@ class NewMain < Main
       p dev
       if dev.connected && dev.activated then
         p "we should now continue"
+        get_object("server_hostname").text='convertserver'
+        get_object("server_username").text='root'
+        get_object("server_password").text='roflkopter'
+        p "let's notify server window that we entered data"
+        @signal_handlers["server_hostname_changed"].call
+        @signal_handlers["server_username_changed"].call
+        @signal_handlers["server_password_changed"].call
+        p "and do a fake click"
+        @signal_handlers["connect_button_clicked"].call
       end
     })
 
-- 
1.8.3.1




More information about the Libguestfs mailing list