Permalink
Browse files

call to keypair listing might have a nil cluster

  • Loading branch information...
1 parent fdff419 commit 6ff6be49038a033a2a44fc7818071074bddc0bf8 Philip (flip) Kromer committed Sep 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ironfan/provider/ec2/key_pair.rb
@@ -33,7 +33,7 @@ def to_s
# Discovery
#
def self.load!(cluster=nil)
- Ironfan.substep(cluster.name, "keypairs")
+ Ironfan.substep(cluster && cluster.name, "keypairs")
Ec2.connection.key_pairs.each do |keypair|
register keypair unless keypair.blank?
Chef::Log.debug("Loaded <%-15s %s>" % [handle, keypair.name])

0 comments on commit 6ff6be4

Please sign in to comment.