Christian Horn wrote:
> On Sun, Jun 28, 2009 at 03:24:01PM -0500, James Cammarata wrote:
>
>> Yes, ! suppresses the meta variable from being used by Cheetah, ~ deletes
>> it from the list. Be sure to use --in-place when doing this, otherwise you
>> will erase all meta variables. The ~ also works in kopts, kopts-post, etc.
>>
>
> Any idea on why deletion doesnt work here?
>
> # cobbler system edit --name=chhorn_tester3 --ksmeta='aaa bbb ccc'
>
> # cobbler system report --name=chhorn_tester3|grep meta
> ks metadata : {'aaa': None, 'bbb': None, 'ccc': None}
>
> # cobbler system edit --name=chhorn_tester3 --in-place --ksmeta='~aaa'
>
> # cobbler system report --name=chhorn_tester3|grep meta
> ks metadata : {'aaa': None, 'bbb': None, 'ccc': None, '~aaa': None}
>
No, I don't... Works for me (though I'm using HEAD):
[mdeh...@mdehaan src]$ sudo cobbler system edit --name=system1
--ksmeta="aaa=bbb ccc=ddd"
[mdeh...@mdehaan src]$ sudo cobbler system edit --name=system1
--ksmeta="~aaa ccc=eee" --in-place
[mdeh...@mdehaan src]$ sudo cobbler system report | grep Kick
Kickstart Metadata : {'ccc': 'eee'}
Given this works on devel and it's a relatively minor feature we can
just fix wait for devel if neccessary, though I don't think the
functionality changed between the two. This is just a CLI convention
so the API and Web App don't need the above trick to remove a value.
> # rpm -q cobbler
> cobbler-1.6.6-1.el5
>
> This is on rhel5 amd64.
>
> Until today usual ksmeta edit cyle was
> - output current values
> - set all the new ones including changed ones with 'cobbler system edit'
>
>
> Christian
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler