summaryrefslogtreecommitdiffstats
path: root/cobbler/modules/cli_image.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-08-12 12:42:14 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-08-12 12:42:14 -0400
commit31952586ba56d076a10c1d08d710d7d1f44580db (patch)
treea879bebe8de2fe2d4463efa59b81dfd0b30aa98a /cobbler/modules/cli_image.py
parent59717a600b8140808cb18339c1dbe09b74f27409 (diff)
downloadcobbler-31952586ba56d076a10c1d08d710d7d1f44580db.tar.gz
cobbler-31952586ba56d076a10c1d08d710d7d1f44580db.tar.xz
cobbler-31952586ba56d076a10c1d08d710d7d1f44580db.zip
Some fixes to image handling so that --image-type is saved and is used to generate
PXE menu items as intended.
Diffstat (limited to 'cobbler/modules/cli_image.py')
-rw-r--r--cobbler/modules/cli_image.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cobbler/modules/cli_image.py b/cobbler/modules/cli_image.py
index 1f606e23..4deeab7e 100644
--- a/cobbler/modules/cli_image.py
+++ b/cobbler/modules/cli_image.py
@@ -45,7 +45,7 @@ class ImageFunction(commands.CobblerFunction):
if not self.matches_args(args,["dumpvars","remove","report","list"]):
p.add_option("--file", dest="file", help="common filesystem path to image for all hosts (nfs is good)")
- p.add_option("--image-type", dest="image-type", help="what kind of image is this?")
+ p.add_option("--image-type", dest="image_type", help="what kind of image is this?")
if self.matches_args(args,["copy","rename"]):
@@ -88,6 +88,7 @@ class ImageFunction(commands.CobblerFunction):
return self.object_manipulator_finish(obj, self.api.images, self.options)
if self.options.file: obj.set_file(self.options.file)
+ if self.options.image_type: obj.set_image_type(self.options.image_type)
if self.options.owners: obj.set_owners(self.options.owners)
if self.options.virt_bridge: obj.set_file(self.options.virt_bridge)
if self.options.virt_path: obj.set_virt_path(self.options.virt_path)