From bb1e5b50e930b7c9618387cc43634e6050eb3481 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 20 Apr 2007 17:57:02 -0400 Subject: 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. --- cobbler/cobbler_msg.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cobbler/cobbler_msg.py') 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", -- cgit