Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Epic rename of cmdb to jig

  • Loading branch information...
commit 32337f7244677170bceb361f43d4c06097b1b522 1 parent 4a49758
@VictorLowther VictorLowther authored
View
2  crowbar_framework/app/controllers/provisioner_controller.rb
@@ -49,7 +49,7 @@ def set_os
private
def get_oses
provisioners = Node.find_by_role_name('provisioner-server')
- provisioners ? provisioners.map{|n|n.cmdb_hash["provisioner"]["available_oses"].keys}.flatten.sort.uniq : []
+ provisioners ? provisioners.map{|n|n.jig_hash["provisioner"]["available_oses"].keys}.flatten.sort.uniq : []
end
end
View
4 crowbar_framework/app/models/provisioner_service.rb
@@ -88,7 +88,7 @@ def transition(inst, name, state)
provisioner = Node.find_by_role_name('provisioner-server')
if provisioner &&
provisioner[0] &&
- provisioner[0].cmdb_hash["provisioner"]["available_oses"][target_os]
+ provisioner[0].jig_hash["provisioner"]["available_oses"][target_os]
nstate = "#{target_os}_install"
else
return [500, "#{node.name} wants to install #{target_os}, but #{name} doesn't know how to do that!"]
@@ -97,7 +97,7 @@ def transition(inst, name, state)
node_hash["provisioner_state"] = nstate
prop_config.set_node_config_hash(node, node_hash)
- node.update_cmdb
+ node.update_jig
# We need a real process runner here.
# Blocking Puma to wait on these state transitions is bad, mmkay?
Please sign in to comment.
Something went wrong with that request. Please try again.