Commit 8c0a5431 authored by Łukasz Nowak's avatar Łukasz Nowak

Check that slave rendered to boolean.

parent b70cab36
...@@ -106,6 +106,9 @@ class InstancePublisher(GenericPublisher): ...@@ -106,6 +106,9 @@ class InstancePublisher(GenericPublisher):
request_dict = {} request_dict = {}
error_dict = {} error_dict = {}
if 'slave' in jbody:
if not isinstance(jbody['slave'], bool):
error_dict['slave'] = 'Not boolean.'
for k_j, k_i in ( for k_j, k_i in (
('software_release', 'software_release'), ('software_release', 'software_release'),
('title', 'software_title'), ('title', 'software_title'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment