Unable to set "None" valued kernel param through XMLRPC

Kevin Connor kconnor at proofpoint.com
Mon May 17 21:09:36 UTC 2010


http://www.mail-archive.com/cobbler-devel@lists.fedorahosted.org/msg00719.html

Justin Sherrill wrote:
> Hi,
>
> So currently with satellite/spacewalk we use the XMLRPC interface to set
> kernel params.
>
> If you want to set something like  foo=bar, it's as simple as passing
> that key/value pair in a map as  "foo":"bar".  If you just want the
> parameter "foo"  though with no value, there is no way to do this.  The
> most sensible thing from a consumer of the XMLRPC interface is to pass
> "foo":""  where the value is an empty string.  Cobbler currently renders
> this as:
>
> foo=
>
> Instead of just:
>
> foo
>
> I can easy change it to treat empty string the same as None when
> rendering the kernel params, but I wanted to get feedback to see if it
> would cause any issues.  Is there any reason not to make this change?
>
> Thanks!
>
> -Justin Sherrill
>
>
>   



More information about the cobbler-devel mailing list