On Thu, Aug 5, 2010 at 9:24 AM, Christian Horn <[email protected]> wrote:
> Hi,
>
> i try to add/delete/modify cobbler objects from a remote
> box via ssh and discovered that returncodes are not even
> local on the box i am executing the commands working:
>
> $ cobbler system add --name=tester3 --hostname=tester3 \
>>   --mac=00 --profile=rhel5u5_serv-x86_64 --ip=10.0.22.40
> cobbler.cexceptions.CX:'invalid format for MAC address (00)'
> # echo $?
> 0
>
> The behaviour is expected, thats no valid mac.  Yet i
> expected to get some returncode != 0.  Same behaviour for
> trying to a system-object with an invalid ip.
>
> Not sure what i could have done wrong.  Do i really have
> to start querying/listing cobbler-objects to find out if
> my last operation succeeded?
>
>
> Christian


I was able to replicate this:

# cobbler system add --name "junk" --mac=00
cobbler.cexceptions.CX:'invalid format for MAC address (00)'
# echo $?
0

# cobbler version
Cobbler 2.0.3.1
  source: ?, ?
  build time: Mon Mar  1 20:08:11 2010


What version of Cobbler are you using?

mark
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to