diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-08-31 17:37:53 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-08-31 17:37:53 -0400 |
commit | 677f54d3bcdc58ccc2ebf87973c156bf2836ec9a (patch) | |
tree | 756be290a4f8d64550976cd34fa2538a88da8c87 /cobbler/collection.py | |
parent | 7b5da0bf400c2a09137c3fb7ff4d96f22750e612 (diff) | |
download | third_party-cobbler-677f54d3bcdc58ccc2ebf87973c156bf2836ec9a.tar.gz third_party-cobbler-677f54d3bcdc58ccc2ebf87973c156bf2836ec9a.tar.xz third_party-cobbler-677f54d3bcdc58ccc2ebf87973c156bf2836ec9a.zip |
Added "cobbler repo auto-add" feature which can discover all the repos
the cobbler server has configured in yum and set them up to be mirrored
automagically.
Diffstat (limited to 'cobbler/collection.py')
-rw-r--r-- | cobbler/collection.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cobbler/collection.py b/cobbler/collection.py index 98e841c..576bf6f 100644 --- a/cobbler/collection.py +++ b/cobbler/collection.py @@ -23,6 +23,7 @@ import action_litesync import item_system import item_profile import item_distro +import item_repo from rhpl.translate import _, N_, textdomain, utf8 @@ -176,6 +177,8 @@ class Collection(serializable.Serializable): lite_sync.add_single_profile(ref.name) elif isinstance(ref, item_distro.Distro): lite_sync.add_single_distro(ref.name) + elif isinstance(ref, item_repo.Repo): + pass else: print _("Internal error. Object type not recognized: %s") % type(ref) |