Commit 0a6c3825 authored by Vivien Alger's avatar Vivien Alger

Changing script generation method

parent 91954237
############################################################################## ##############################################################################
# #
# Copyright (c) 2011 Vifib SARL and Contributors. All Rights Reserved. # Copyright (c) 2011 Vifib SARL and Contributors. All Rights Reserved.
...@@ -31,13 +32,19 @@ class MonitorRecipe(GenericBaseRecipe): ...@@ -31,13 +32,19 @@ class MonitorRecipe(GenericBaseRecipe):
def install(self): def install(self):
options = self.options options = self.options
script = self.createWrapper(name=options['path'], config = dict(
command=options['kvm-monitor-path'], kvm_monitor_path=options['kvm-monitor-path'],
parameters=[ filepath = options['filepath'],
options['filepath'], xml_path = options['xml-path'],
options['xml-path'], sections = options['sections'],
options['sections'], options = options['options']
options['options'] )
]) script = self.createExecutable(
options['path'],
self.substituteTemplate(
self.getTemplateFilename('kvm_monitor_run.in'),config
)
)
return [script] return [script]
#!/bin/sh
exec %(kvm_monitor_path)s %(filepath)s %(xml_path)s -s %(sections)s --opts %(options)s
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment