summaryrefslogtreecommitdiffstats
path: root/cobbler/item.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-10-13 12:30:43 -0400
committerJim Meyering <jim@meyering.net>2006-10-13 12:30:43 -0400
commitcd9b923b946c45c5a732fa6e053a59c0f9fcb40e (patch)
tree6bc459a428a53416c4aa55a68553dd3c9c5e48aa /cobbler/item.py
parent6e84895b828b4fa5e3c45464dd08949fa382dfa5 (diff)
downloadthird_party-cobbler-cd9b923b946c45c5a732fa6e053a59c0f9fcb40e.tar.gz
third_party-cobbler-cd9b923b946c45c5a732fa6e053a59c0f9fcb40e.tar.xz
third_party-cobbler-cd9b923b946c45c5a732fa6e053a59c0f9fcb40e.zip
Import feature added (usable for things like /mnt/redhat)
Diffstat (limited to 'cobbler/item.py')
-rw-r--r--cobbler/item.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cobbler/item.py b/cobbler/item.py
index 0bec45f..6dad205 100644
--- a/cobbler/item.py
+++ b/cobbler/item.py
@@ -48,7 +48,7 @@ class Item(serializable.Serializable):
return False
return True
- def load_item(self,datastruct,key):
+ def load_item(self,datastruct,key,default=''):
"""
Used in subclass from_datastruct functions to load items from
a hash. Intented to ease backwards compatibility of config
@@ -56,7 +56,7 @@ class Item(serializable.Serializable):
"""
if datastruct.has_key(key):
return datastruct[key]
- return ''
+ return default
def to_datastruct(self):
"""