Revision 311eefcb src/cloud/ec2/lib/econe-server.rb

View differences:

src/cloud/ec2/lib/econe-server.rb
45 45

  
46 46
include OpenNebula
47 47

  
48
$econe_server = EC2QueryServer.new(CONFIGURATION_FILE,
49
    TEMPLATE_LOCATION, VIEWS_LOCATION)
48
begin
49
    $econe_server = EC2QueryServer.new(CONFIGURATION_FILE,
50
        TEMPLATE_LOCATION, VIEWS_LOCATION)
51
rescue Exception => e
52
    puts "Error starting server: #{e}"
53
    exit(-1)
54
end
50 55

  
51 56
if CloudServer.is_port_open?($econe_server.config[:server], 
52 57
                             $econe_server.config[:port])

Also available in: Unified diff