From 5bee3dabb7782e5142c1dc915f0161f86819b60e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 4 Sep 2007 22:16:36 -0400 Subject: changelog + docs --- cobbler/item_profile.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cobbler/item_profile.py') 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): -- cgit