summaryrefslogtreecommitdiffstats
path: root/cobbler/action_sync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-02-13 10:45:19 -0500
committerMichael DeHaan <mdehaan@redhat.com>2008-02-13 10:45:19 -0500
commite37c6b98d8b3678122fad9ddba9c4971e218120c (patch)
tree7d3a5e500024acefec7255fd66b712544828eea9 /cobbler/action_sync.py
parentcb940f7bc9b715814ac48269379a6525fa427cdf (diff)
downloadthird_party-cobbler-e37c6b98d8b3678122fad9ddba9c4971e218120c.tar.gz
third_party-cobbler-e37c6b98d8b3678122fad9ddba9c4971e218120c.tar.xz
third_party-cobbler-e37c6b98d8b3678122fad9ddba9c4971e218120c.zip
Added in a possible workaround for a user problem with source_repos in an upgrade scenario (testing needed).
Diffstat (limited to 'cobbler/action_sync.py')
-rw-r--r--cobbler/action_sync.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index b889f52..139066e 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -700,6 +700,11 @@ class BootSync:
input_files = []
+ # chance old versions from upgrade do not have a source_repos
+ # workaround for user bug
+ if not blended.has_key("source_repos"):
+ blended["source_repos"] = []
+
# tack on all the install source repos IF there is more than one.
# this is basically to support things like RHEL5 split trees
# if there is only one, then there is no need to do this.