Revision aff16e50

View differences:

src/oca/ruby/OpenNebula.rb
74 74
            elsif File.file?(ENV["HOME"]+"/.one/one_auth")
75 75
                one_secret=File.read(ENV["HOME"]+"/.one/one_auth")
76 76
            else
77
                puts "ONE_AUTH file not present"
78
                exit -1
77
                raise "ONE_AUTH file not present"
79 78
            end
80 79

  
81 80
            if !one_secret.match(".+:.+")
82
                puts "Authorization file malformed"
83
                exit -1
81
                raise "Authorization file malformed"
84 82
            end
85 83

  
86 84

  

Also available in: Unified diff