On Tue, 14 Jul 2009 19:21:28 -0700, Paul Company <pjcster(a)gmail.com> wrote:
Thank you James.
I see what I did wrong, I used underscores instead of dashes.
I ran
# cobbler system edit --name=foo --name_servers_search="bar"
usage: cobbler system edit [ARGS]
cobbler: error: no such option: --name_servers_search
I got confused because when you use dumpvars it displays the variable
with underscores,
but when you change it on the command line you're supposed to use dashes.
That's a little confusing if you ask me.
Paul
Python doesn't like variables with dashes in them, and it's standard posix
to have long options use the dash rather than the underscore. In general,
you shouldn't need to worry about dumpvars anyway, it's more of a debugging
tool.
Just remember when you use the variables in templates, they'll use the
underscore again.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.