Commit e9560d5f authored by Kristopher Ruzic's avatar Kristopher Ruzic

some debugging...

parent 0087450a
...@@ -27,11 +27,13 @@ ...@@ -27,11 +27,13 @@
from slapos.recipe.librecipe import GenericBaseRecipe from slapos.recipe.librecipe import GenericBaseRecipe
import os import os
import sys import sys
import logging
class Recipe(GenericBaseRecipe): class Recipe(GenericBaseRecipe):
""" """
kvm instance configuration. kvm instance configuration.
""" """
self.logger = logging.getLogger("KVM RECIPE")
def install(self): def install(self):
# Sanitize drive type parameter # Sanitize drive type parameter
self.options.setdefault('disk-type', 'virtio') self.options.setdefault('disk-type', 'virtio')
...@@ -64,7 +66,8 @@ class Recipe(GenericBaseRecipe): ...@@ -64,7 +66,8 @@ class Recipe(GenericBaseRecipe):
), ),
) )
path_list.append(tunnel_path) path_list.append(tunnel_path)
print len(self.options) self.logger.warning(len(self.options))
self.logger.warning(self.options)
runner_path = self.createExecutable( runner_path = self.createExecutable(
self.options['runner-path'], self.options['runner-path'],
self.substituteTemplate(self.getTemplateFilename('kvm_run.in'), self.substituteTemplate(self.getTemplateFilename('kvm_run.in'),
......
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