summaryrefslogtreecommitdiffstats
path: root/cobbler/cobbler_msg.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-04-20 17:57:02 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-04-20 17:57:02 -0400
commitbb1e5b50e930b7c9618387cc43634e6050eb3481 (patch)
treeac7feb459190458ed21a57ae1bf7d5dc5b664666 /cobbler/cobbler_msg.py
parent8205bf0691bb48080c3bc4d0fd7c444238187801 (diff)
downloadthird_party-cobbler-bb1e5b50e930b7c9618387cc43634e6050eb3481.tar.gz
third_party-cobbler-bb1e5b50e930b7c9618387cc43634e6050eb3481.tar.xz
third_party-cobbler-bb1e5b50e930b7c9618387cc43634e6050eb3481.zip
This commit overhauls the main cobbler CLI module and adds support for
object renaming, copying, and editing -- previously only addition and removal were supported. This frees uses (hopefully) from the need to hack YAML and risk damaging their configurations by rendering the config unparseable. It also makes "cobbler list" print out a simple tree representation that shows the association between objects. This also relaxes the requirements for what constitutes a kernel and initrd filename, just in case they are named something different. They still have to exist.
Diffstat (limited to 'cobbler/cobbler_msg.py')
-rw-r--r--cobbler/cobbler_msg.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cobbler/cobbler_msg.py b/cobbler/cobbler_msg.py
index ca8ab2d..ad3d601 100644
--- a/cobbler/cobbler_msg.py
+++ b/cobbler/cobbler_msg.py
@@ -61,6 +61,7 @@ _msg_table = {
"parse_error" : "cobbler could not read %s, replacing...",
"no_ssh" : "cobbler can't read ~/.ssh/id_dsa.pub",
"exc_koan_path" : "koan_path in /var/lib/cobbler/settings is invalid",
+ "no_rename" : "objects can not be renamed using the edit command",
"no_create" : "cobbler could not create: %s",
"no_delete" : "cobbler could not delete: %s",
"no_args" : "this command requires arguments.",
@@ -98,7 +99,8 @@ _msg_table = {
"orphan_system" : "Removing this profile would break system '%s'",
"delete_nothing" : "can't delete something that doesn't exist",
"no_distro" : "distro does not exist",
- "no_repo" : "repository %s referenced in profile cannot be found",
+ "no_system" : "system does not exist",
+ "no_repo" : "repository %s does not exist",
"no_repos" : "one of the listed repositories is not defined in cobbler",
"no_profile" : "profile does not exist",
"no_kickstart" : "kickstart must be an absolute path, or an http://, ftp:// or nfs:// URL",