0004-Use-helper-method.patch

Jean-Philippe Garcia Ballester, 04/17/2013 11:06 AM

Download (1.11 KB)

View differences:

src/cli/oneuser
326 326
    EOT
327 327

  
328 328
    command :key, key_desc, :options=>[KEY] do
329
        require 'opennebula/ssh_auth'
330

  
331
        options[:key] ||= ENV['HOME']+'/.ssh/id_rsa'
332

  
333
        begin
334
            sshauth = SshAuth.new(:private_key=>options[:key])
335
        rescue Exception => e
336
            exit_with_code -1, e.message
337
        end
338

  
339
        puts sshauth.password
340
        exit_with_code 0
329
        options[:driver] = OpenNebula::User::SSH_AUTH
330
        helper.password(options)
341 331
    end
342 332

  
343 333

  
344
-