mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-18 10:53:13 +09:00
Bug #3024: oneflow template creation not working with the new csrftoken fix
This commit is contained in:
1 parent
66ef51d148
commit
417a7787f5
1 file changed
+3
-1
@@ -170,6 +170,7 @@ module OpenNebula
|
||||
|
||||
def allocate(template_json)
|
||||
template = JSON.parse(template_json)
|
||||
template.delete("csrftoken")
|
||||
|
||||
validator = Validator::Validator.new(
|
||||
:default_values => true,
|
||||
@@ -192,6 +193,7 @@ module OpenNebula
|
||||
|
||||
def update(template_json)
|
||||
template = JSON.parse(template_json)
|
||||
template.delete("csrftoken")
|
||||
|
||||
validator = Validator::Validator.new(
|
||||
:default_values => true,
|
||||
@@ -302,7 +304,7 @@ module OpenNebula
|
||||
raise Validator::ParseException,
|
||||
"Role '#{role['name']}', scheduled policy ##{index} needs to define either "<<
|
||||
"'start_time' or 'recurrence'"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user