summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler')
-rw-r--r--cobbler/item_profile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/item_profile.py b/cobbler/item_profile.py
index e66b1d9..286e0d3 100644
--- a/cobbler/item_profile.py
+++ b/cobbler/item_profile.py
@@ -169,7 +169,7 @@ class Profile(item.Item):
# 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:
+ if type(num) == str and num.find(",") != -1:
tokens = num.split(",")
for t in tokens:
# hack to run validation on each