Ian Main
2009-Feb-11 18:53 UTC
[Ovirt-devel] [PATCH server] Move get_credentials before connect
Well that was bad, get_credentials was called after trying to connect to qpidd. This fixes it. Signed-off-by: Ian Main <imain at redhat.com> --- src/task-omatic/taskomatic.rb | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/task-omatic/taskomatic.rb b/src/task-omatic/taskomatic.rb index 77fe6da..e65db08 100755 --- a/src/task-omatic/taskomatic.rb +++ b/src/task-omatic/taskomatic.rb @@ -756,9 +756,6 @@ class TaskOmatic end tasks.each do |task| - # make sure we get our credentials up-front - get_credentials('libvirt') - get_credentials('qpidd') task.time_started = Time.now @@ -819,6 +816,9 @@ class TaskOmatic end end +get_credentials('libvirt') +get_credentials('qpidd') + taskomatic = TaskOmatic.new() taskomatic.mainloop() -- 1.6.0.4