Bug #3024: oneflow template creation not working with the new csrftoken fix

This commit is contained in:
Jaime Melis committed 2014-07-09 16:28:49 +02:00
1 parent 66ef51d148
commit 417a7787f5
1 file changed
+3 -1
+3 -1
View File
@@ -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