summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/Server/Plugins/Chiba.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Chiba.py b/src/lib/Server/Plugins/Chiba.py
index 92ad05ab5..c633272fc 100644
--- a/src/lib/Server/Plugins/Chiba.py
+++ b/src/lib/Server/Plugins/Chiba.py
@@ -35,5 +35,9 @@ class Chiba(Bcfg2.Server.Plugin.Plugin):
except socket.gaierror:
self.logger.error("Failed to resolve %s"% myriname)
raise Bcfg2.Server.Plugin.PluginExecutionError, (myriname, 'lookup')
- entry.text = self.repo.entries['interfaces-template'].data % myriaddr
+ if metadata.hostname.split('.')[0] == 'ccsched':
+ entry.text = self.repo.entries['interfaces-template.ccsched'].data % myriaddr
+ else:
+ entry.text = self.repo.entries['interfaces-template'].data % myriaddr
+