1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Fix bugs in Zone creation

This commit is contained in:
Carlos Martín 2011-09-23 15:29:06 +02:00
parent 1943ce6206
commit 4f2008fc1f
2 changed files with 1 additions and 6 deletions

View File

@ -19,11 +19,6 @@ module OZones
class ApacheWritter
def initialize(file_path)
@file_path = file_path
File.open(@file_path, 'w') {|f|
f.flock(File::LOCK_EX)
f.write(htaccess)
}
end
def update

View File

@ -226,7 +226,7 @@ class OzonesServer
mandatory_params = [:onename, :onepass, :endpoint, :name]
mandatory_params.each { |param|
if !vdc_data[param]
if !zone_data[param]
return [400, OZones::Error.new(
"Error: Couldn't create resource #{kind}. " +
"Mandatory attribute '#{param}' is missing.").to_json]