[Libguestfs] [PATCH 52/61] p2v: main.rb - polish text output

Maros Zatko mzatko at redhat.com
Wed Feb 12 14:31:04 UTC 2014


---
 p2v/client/lib/virt-p2v/ui/main.rb | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/p2v/client/lib/virt-p2v/ui/main.rb b/p2v/client/lib/virt-p2v/ui/main.rb
index ac2ef27..e46c70f 100644
--- a/p2v/client/lib/virt-p2v/ui/main.rb
+++ b/p2v/client/lib/virt-p2v/ui/main.rb
@@ -58,7 +58,6 @@ class Main
         raise "Attempt to activate non-existent page #{name}" \
             unless @pages.has_key?(name)
 
-        p "trying to activate page #{name}"
         page = @pages[name]
 
         @page_vbox = self.get_object('page_vbox') unless defined? @page_vbox
@@ -166,9 +165,9 @@ class NewMain < Main
     # register ourselves as listener on activated connection
     # as VirtP2V::UI:Netowork does
     VirtP2V::NetworkDevice.add_listener( lambda { |dev|
-      p dev
+      puts "interface #{dev.name} #{dev.mac}: #{dev.state}"
       if dev.connected && dev.activated then
-        p "we should now continue"
+        puts "connection ready, connecting to p2v server"
         fill_and_click_connect
       end
     })
@@ -265,7 +264,7 @@ class NewMain < Main
   end
 
   def active_page=(name)
-    puts "#{name}"
+    puts "setting active page to #{name}"
     STDOUT.flush
     super(name)
     if name == 'conversion_win'
-- 
1.8.3.1




More information about the Libguestfs mailing list