summaryrefslogtreecommitdiffstats
path: root/cobbler/modules/cli_image.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/modules/cli_image.py')
-rw-r--r--cobbler/modules/cli_image.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cobbler/modules/cli_image.py b/cobbler/modules/cli_image.py
index b6b96ff4..0265bd78 100644
--- a/cobbler/modules/cli_image.py
+++ b/cobbler/modules/cli_image.py
@@ -20,7 +20,7 @@ mod_path="%s/cobbler" % plib
sys.path.insert(0, mod_path)
from utils import _
-import commands
+import cobbler.commands as commands
import cexceptions
@@ -54,6 +54,8 @@ class ImageFunction(commands.CobblerFunction):
if not self.matches_args(args,["dumpvars","remove","report","list"]):
p.add_option("--os-version", dest="os_version", help="ex: rhel4, fedora 9")
+ if self.matches_args(args,["remove"]):
+ p.add_option("--recursive", action="store_true", dest="recursive", help="also delete child objects")
if self.matches_args(args,["copy","rename"]):