mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
Fix bugs in Zone creation
This commit is contained in:
1 parent
1943ce6206
commit
4f2008fc1f
2 files changed
+1
-6
No files matched your search
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user