diff options
Diffstat (limited to 'cobbler')
-rw-r--r-- | cobbler/action_sync.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py index 1a41d30..c4766f5 100644 --- a/cobbler/action_sync.py +++ b/cobbler/action_sync.py @@ -781,14 +781,15 @@ class BootSync: # for all list of kernel options for items in list_of_opts: # get each option - tokens=items.split(" ") - # deal with key/value pairs and single options alike - for token in tokens: - key_value = token.split("=") - if len(key_value) == 1: - internal[key_value[0]] = "" - else: - internal[key_value[0]] = key_value[1] + if items is not None: + tokens=items.split(" ") + # deal with key/value pairs and single options alike + for token in tokens: + key_value = token.split("=") + if len(key_value) == 1: + internal[key_value[0]] = "" + else: + internal[key_value[0]] = key_value[1] if not is_for_kernel: return internal # the kernel requires a flat string for options, and we want |