[et-mgmt-tools] adding a new system with the cobbler api?
Jennifer Cranfill
cranfill at imageworks.com
Tue Feb 12 19:51:16 UTC 2008
I'm having trouble adding a new system using the cobbler python api with
version 0.7.2 (I have not tried this with any other versions).
Here is my python code:
>>> from cobbler import api
>>> cobbler_api = api.BootAPI()
>>> new_sys = cobbler_api.new_system()
>>> new_sys.name = 'testmachine'
>>> new_sys.profile = 'cserver_centos51_x86'
>>> cobbler_api.add_system(new_sys)
True
That works, but it doesn't show up in the cobbler command line:
$ cobbler system list | grep test
$
Am I missing something?
Thanks!
--
Jennifer Cranfill
Systems Engineer
Sony Pictures Imageworks
cranfill at imageworks.com
More information about the et-mgmt-tools
mailing list