diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2011-01-03 21:19:03 -0600 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2011-01-03 21:19:03 -0600 |
commit | 847f8dcef257d5aeb6a9f17df9eb087d63ffeead (patch) | |
tree | 996b56bad3d3956edf87bb90d2f0213ddd3745ab /src/lib/Server/Admin/Pull.py | |
parent | 1ae62017ffc2a0783567736573d72b7d16729770 (diff) | |
parent | fe0f19652d6a93057a604eabef2e3ee983bac3eb (diff) | |
download | bcfg2-847f8dcef257d5aeb6a9f17df9eb087d63ffeead.tar.gz bcfg2-847f8dcef257d5aeb6a9f17df9eb087d63ffeead.tar.bz2 bcfg2-847f8dcef257d5aeb6a9f17df9eb087d63ffeead.zip |
Merge branch 'master' of git.mcs.anl.gov:bcfg2
Diffstat (limited to 'src/lib/Server/Admin/Pull.py')
-rw-r--r-- | src/lib/Server/Admin/Pull.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/Server/Admin/Pull.py b/src/lib/Server/Admin/Pull.py index aa732c67f..289852f79 100644 --- a/src/lib/Server/Admin/Pull.py +++ b/src/lib/Server/Admin/Pull.py @@ -135,4 +135,9 @@ class Pull(Bcfg2.Server.Admin.MetadataCore): except Bcfg2.Server.Plugin.PluginExecutionError: self.errExit("Configuration upload not supported by plugin %s" \ % (plugin.name)) - # FIXME svn commit if running under svn + # commit if running under a VCS + for vcsplugin in self.bcore.plugins.values(): + if isinstance(vcsplugin, Bcfg2.Server.Plugin.Version): + files = "%s/%s" % (plugin.data, ename) + comment = 'file "%s" pulled from host %s' % (files, client) + vcsplugin.commit_data([files], comment) |