diff options
Diffstat (limited to 'cobbler')
-rw-r--r-- | cobbler/utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cobbler/utils.py b/cobbler/utils.py index 9c770d0..4d2b635 100644 --- a/cobbler/utils.py +++ b/cobbler/utils.py @@ -239,7 +239,9 @@ def input_string_or_list(options,delim=","): elif type(options) == list: return options elif type(options) == str: - tokens = options.split(",") + tokens = options.split(delim) + if delim == ",": + tokens = [t.lstrip().rstrip() for t in tokens] return tokens else: raise CX(_("invalid input type")) |