From c6434476e9b22464185adc7768f6b26ece58483c Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Mon, 23 Mar 2015 11:28:38 +0000 Subject: [PATCH] Work when cpu count is not defined --- makebuildserver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makebuildserver b/makebuildserver index 6c49fa9a..ee4c3489 100755 --- a/makebuildserver +++ b/makebuildserver @@ -170,7 +170,7 @@ Vagrant.configure("2") do |config| """.format(config['basebox'], config['baseboxurl'], config['memory'], - config['cpus'] or 1) + config.get('cpus', 1)) if 'aptproxy' in config and config['aptproxy']: vagrantfile += """ config.vm.provision :shell, :inline => 'sudo echo "Acquire::http {{ Proxy \\"{0}\\"; }};" > /etc/apt/apt.conf.d/02proxy && sudo apt-get update'