lib/routes/main.rb in gaptool-server-0.5.17 vs lib/routes/main.rb in gaptool-server-0.5.18
- old
+ new
@@ -123,9 +123,10 @@
@chef_repo = host_data['chef_repo'] && !host_data['chef_repo'].empty? ? host_data['chef_repo'] : $redis.hget('config', 'chefrepo')
@chef_branch = host_data['chef_branch'] && !host_data['chef_branch'].empty? ? host_data['chef_branch'] : $redis.hget('config', 'chefbranch')
@chef_environment = data['environment']
@initkey = $redis.hget('config', 'initkey')
+ @chef_version = $redis.hget("config", "chef_version") || "11.16.4"
@json = {
'hostname' => hostname,
'recipe' => 'init',
'number' => @instance.id,
'instance' => @instance.id,