summaryrefslogtreecommitdiffstats
path: root/cobbler/action_reposync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-11-19 17:39:15 -0500
committerMichael DeHaan <mdehaan@redhat.com>2007-11-19 17:39:15 -0500
commit995bf878e03aabd8036498b641253a2c419e3c01 (patch)
tree38301f5c0300f721185b08a398be29a7f93eca85 /cobbler/action_reposync.py
parent5883ca6b1b8fe371f98db68ac71982affed8b974 (diff)
downloadthird_party-cobbler-995bf878e03aabd8036498b641253a2c419e3c01.tar.gz
third_party-cobbler-995bf878e03aabd8036498b641253a2c419e3c01.tar.xz
third_party-cobbler-995bf878e03aabd8036498b641253a2c419e3c01.zip
Further work on CLI modularization. All commands implemented now, except for old
school compatibility translation for list/report. All commands will then need to be tested...
Diffstat (limited to 'cobbler/action_reposync.py')
-rw-r--r--cobbler/action_reposync.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cobbler/action_reposync.py b/cobbler/action_reposync.py
index 1cbb6e2..e67317a 100644
--- a/cobbler/action_reposync.py
+++ b/cobbler/action_reposync.py
@@ -49,16 +49,16 @@ class RepoSync:
# ===================================================================
- def run(self, args=[], verbose=True):
+ def run(self, name=None, verbose=True):
"""
Syncs the current repo configuration file with the filesystem.
"""
self.verbose = verbose
for repo in self.repos:
- if args != [] and repo.name not in args:
+ if name is not None and repo.name != name:
continue
- elif args == [] and not repo.keep_updated:
+ elif name is None and not repo.keep_updated:
print _("- %s is set to not be updated") % repo.name
continue