Skip to content

Instantly share code, notes, and snippets.

@mattikus
Created May 21, 2012 15:16
Show Gist options
  • Save mattikus/2762868 to your computer and use it in GitHub Desktop.
Save mattikus/2762868 to your computer and use it in GitHub Desktop.
<Bundle name="networkinterfaces" xmlns:py="http://genshi.edgewall.org/">
<?python
bcfg_root = path.split('/Cfg')[0]
confile_file = os.path.join(bcfg_root, 'etc/networkinterfaces.conf')
?>
<Path name='${config_file}' />
</Bundle>
{% python
import os
bcfg_root = path.split('/Cfg')[0]
config_file = os.path.join(bcfg_root, 'etc/networkinterfaces.conf')
%}
${bcfg_root}
Failed to render bundle networkinterfaces.genshi for host vestalac1: "path" not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment