summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
authorroot <root@drwily.rdu.redhat.com>2007-09-04 22:16:36 -0400
committerroot <root@drwily.rdu.redhat.com>2007-09-04 22:16:36 -0400
commit5bee3dabb7782e5142c1dc915f0161f86819b60e (patch)
treecb287443ef10ef5f47bbbc403838f8802ea0e128 /cobbler
parent2501f06915d373edba243e6c4433cdf0ec344ee8 (diff)
downloadthird_party-cobbler-5bee3dabb7782e5142c1dc915f0161f86819b60e.tar.gz
third_party-cobbler-5bee3dabb7782e5142c1dc915f0161f86819b60e.tar.xz
third_party-cobbler-5bee3dabb7782e5142c1dc915f0161f86819b60e.zip
changelog + docs
Diffstat (limited to 'cobbler')
-rw-r--r--cobbler/item_profile.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/cobbler/item_profile.py b/cobbler/item_profile.py
index d8a7152..e66b1d9 100644
--- a/cobbler/item_profile.py
+++ b/cobbler/item_profile.py
@@ -167,6 +167,17 @@ class Profile(item.Item):
size you want.
"""
# num is a non-negative integer (0 means default)
+ # can also be a comma seperated list -- for usage with multiple disks
+
+ if num.find(",") != -1:
+ tokens = num.split(",")
+ for t in tokens:
+ # hack to run validation on each
+ self.set_virt_file_size(t)
+ # if no exceptions raised, good enough
+ self.virt_file_size = num
+ return True
+
try:
inum = int(num)
if inum != float(num):