---
p2v/client/lib/virt-p2v/ui/main.rb | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/p2v/client/lib/virt-p2v/ui/main.rb b/p2v/client/lib/virt-p2v/ui/main.rb
index 891fe99..0d27c08 100644
--- a/p2v/client/lib/virt-p2v/ui/main.rb
+++ b/p2v/client/lib/virt-p2v/ui/main.rb
@@ -198,6 +198,22 @@ class NewMain < Main
# p nejm
end
n
+ elsif name == 'convert_status'
+ n = NeverMind.new self, name
+ n.eigen.send(:define_method, :text) do
+ @text || ""
+ end
+ n.eigen.send(:define_method, :"text=") do |str|
+ @text = str
+ puts "conversion status changed to: '#{str}'"
+ STDOUT.flush
+ if str =~ /failure|error/i
+ #puts "Error connecting: '#{str}'"
+ puts "Giving up."
+ exit(4)
+ end
+ end
+ n
elsif name == 'connect_error'
n = NeverMind.new self, name
n.eigen.send(:define_method, :text) do
--
1.8.3.1