diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-05-08 16:57:33 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-05-08 16:57:33 -0400 |
commit | 6ae4029a0c0021cb9151cb5a22a68c4b72ecf8cc (patch) | |
tree | c519530c40fa956677b44959205708939ad5221e /cobbler/remote.py | |
parent | 7ee964ea8bc64284409c7ac053eb0c12b449aed6 (diff) | |
download | third_party-cobbler-6ae4029a0c0021cb9151cb5a22a68c4b72ecf8cc.tar.gz third_party-cobbler-6ae4029a0c0021cb9151cb5a22a68c4b72ecf8cc.tar.xz third_party-cobbler-6ae4029a0c0021cb9151cb5a22a68c4b72ecf8cc.zip |
Added --mirror-locally option to repo add/edit and WebUI for specifying that a cobbler
repo object is to be used directly, rather than mirrored into /var/www/cobbler by reposync/rsync.
This can be usable when network connectivity outside is certain, and there are no performance or bandwidth needs on a local mirror. This supports http:// and ftp:// only, rsync:// is not natively understood by yum.
Diffstat (limited to 'cobbler/remote.py')
-rw-r--r-- | cobbler/remote.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cobbler/remote.py b/cobbler/remote.py index 749298e..87695d2 100644 --- a/cobbler/remote.py +++ b/cobbler/remote.py @@ -65,6 +65,11 @@ class CobblerXMLRPCInterface: def ping(self): return True + def update(self,token=None): + # ensure the config is up to date as of /now/ + self.api.deserialize() + return True + def get_user_from_token(self,token): if not TOKEN_CACHE.has_key(token): raise CX(_("invalid token: %s") % token) |