summaryrefslogtreecommitdiffstats
path: root/doc/development
diff options
context:
space:
mode:
Diffstat (limited to 'doc/development')
-rw-r--r--doc/development/index.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/development/index.txt b/doc/development/index.txt
index bcfa2b56c..0cfe4ec42 100644
--- a/doc/development/index.txt
+++ b/doc/development/index.txt
@@ -188,7 +188,7 @@ Example Plugin
def __init__(self, core, datastore):
Bcfg2.Server.Plugin.Plugin.__init__(self, core, datastore)
- self.Entries = {'ConfigFile':{'/etc/foo.conf': self.buildFoo}}
+ self.Entries = {'Path':{'/etc/foo.conf': self.buildFoo}}
def myfunction(self):
'''function for xmlrpc rmi call'''
@@ -197,7 +197,7 @@ Example Plugin
def buildFoo(self, entry, metadata):
'''Bind per-client information into entry based on metadata'''
- entry.attrib.update({'owner':'root', 'group':'root', 'perms':'644'})
+ entry.attrib.update({'type':'file', 'owner':'root', 'group':'root', 'perms':'644'})
entry.text = '''contents of foo.conf'''
Example Connector