summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Admin/Pull.py
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2010-12-18 08:21:42 -0600
committerTim Laszlo <tim.laszlo@gmail.com>2010-12-18 09:20:22 -0600
commita7d489e63e4e887b972c2c362fff532daef994a4 (patch)
tree50c86aa8f3e5d29dcc2acde4182d38e68cb2cf16 /src/lib/Server/Admin/Pull.py
parentdcdfd3684115d11b21f9985754e38c6dc91006fa (diff)
downloadbcfg2-a7d489e63e4e887b972c2c362fff532daef994a4.tar.gz
bcfg2-a7d489e63e4e887b972c2c362fff532daef994a4.tar.bz2
bcfg2-a7d489e63e4e887b972c2c362fff532daef994a4.zip
Admin.Pull: Add commit support to PulEntry
Diffstat (limited to 'src/lib/Server/Admin/Pull.py')
-rw-r--r--src/lib/Server/Admin/Pull.py7
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..cb837abc4 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 plugin in self.bcore.plugins.values():
+ if isinstance(plugin, Bcfg2.Server.Plugin.Version):
+ files = "%s/%s" % (plugin.data, ename)
+ comment = 'file "%s" pulled from host %s' % (files, client)
+ plugin.commit_data([files], comment)