On Wed, 7 Jul 2010 10:46:04 +0100, Tom Brown <[email protected]> wrote:
> We are on 1.6.6 as we have templating issues with 2.x at the moment
> and i dont think --in-place is working as i expect it.
> 
> cobbler system add --name=larry --ksmeta="hostname=larry  role=one"
> --in-place --ksmeta='type=two'
> 
> would result in ksmeta being 'type=two' and not 'hostname=larry
> role=one type=two'
> 
> Can --in-place only be done on an edit?

The way cobbler parses options is a bit odd - you cannot specify an option
twice like you are because the second one will be parsed and replace the
first.  For instance, you could do this:

$ cobbler system add --name=foo --name=bar --profile=centos5.2-i386
$ cobbler system list
   bar

Cobbler doesn't complain about that at all, which it probably should.

Second, --in-place really only makes sense on an edit. Since you're adding
and you know all the values ahead of time, just combine your two blocks
into one:

$ cobbler system add --name=larry --ksmeta="hostname=larry role=one
type=two"

It's shorter and easier :)

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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

Reply via email to