lib/testlab/container/actions.rb in testlab-0.0.4 vs lib/testlab/container/actions.rb in testlab-0.1.0
- old
+ new
@@ -5,11 +5,13 @@
# Create the container
def create
@ui.logger.debug { "Container Create: #{self.id} " }
+ self.domain ||= self.node.labfile.config[:domain]
self.distro ||= "ubuntu"
self.release ||= "precise"
+
self.arch ||= detect_arch
self.lxc.config.clear
self.lxc.config['lxc.utsname'] = self.id
self.lxc.config['lxc.arch'] = self.arch