Skip to content

Commit

Permalink
Protect disks
Browse files Browse the repository at this point in the history
  • Loading branch information
galthaus committed Aug 14, 2012
1 parent 5180a1a commit 7f17fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crowbar_framework/app/models/deployer_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def transition(inst, name, state)
end

chash["crowbar"]["usage"] = [] if chash["crowbar"]["usage"].nil?
if (chash["crowbar"]["disks"].size > 1) and !chash["crowbar"]["usage"].include?("swift")
if (chash["crowbar"]["disks"] and chash["crowbar"]["disks"].size > 1) and !chash["crowbar"]["usage"].include?("swift")
chash["crowbar"]["usage"] << "swift"
end

Expand Down

0 comments on commit 7f17fca

Please sign in to comment.