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:
parent
1943ce6206
commit
4f2008fc1f
@ -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
|
||||
|
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user