You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not possible to toggle iPXE support, the API responds with a type check error:
# cobbler profile edit --name foobar --enable-ipxe 1
exception on server: enable_ipxe needs to be of type bool
Steps to reproduce
Build fresh RPMs from master
Create a distro
Create a profile for that distro
Run cobbler profile edit
Expected behavior
The given command should not fail.
Cobbler version
# cobbler version
Cobbler 3.2.1
source: ?, ?
build time: Mon Jun 21 17:54:49 2021
Operating system
CentOS 8.
Cobbler log
[Thread-5] 2021-06-22T08:44:16 - INFO | Exception occurred: <class 'TypeError'>
[Thread-5] 2021-06-22T08:44:16 - INFO | Exception value: enable_ipxe needs to be of type bool
[Thread-5] 2021-06-22T08:44:16 - INFO | Exception Info:
File "/usr/lib/python3.6/site-packages/cobbler/remote.py", line 3505, in _dispatch
return method_handle(*params)
File "/usr/lib/python3.6/site-packages/cobbler/remote.py", line 1938, in xapi_object_edit
self.modify_item(object_type, handle, key, value, token)
File "/usr/lib/python3.6/site-packages/cobbler/remote.py", line 1696, in modify_item
setattr(obj, attribute, arg)
File "/usr/lib/python3.6/site-packages/cobbler/items/profile.py", line 285, in enable_ipxe
raise TypeError("enable_ipxe needs to be of type bool")
The text was updated successfully, but these errors were encountered:
The problem is that the value on the CLI is always a str. Currently we need to convert it with the utils method. Sadly we can't do that in the CLI since we can't distinguish that there. Thus we need to do it in the model. This is affecting all boolean attributes.
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
It's not possible to toggle iPXE support, the API responds with a type check error:
Steps to reproduce
cobbler profile edit
Expected behavior
The given command should not fail.
Cobbler version
Operating system
CentOS 8.
Cobbler log
The text was updated successfully, but these errors were encountered: