While I haven't done this, it is possible to bring up an instance
without a keypair, so this takes care of that scenario
This commit is contained in:
parent
36c1b4be0e
commit
39efcd0766
1 changed files with 2 additions and 1 deletions
|
@ -303,6 +303,7 @@ class Ec2Inventory(object):
|
||||||
self.push(self.inventory, self.to_safe('type_' + instance.instance_type), dest)
|
self.push(self.inventory, self.to_safe('type_' + instance.instance_type), dest)
|
||||||
|
|
||||||
# Inventory: Group by key pair
|
# Inventory: Group by key pair
|
||||||
|
if instance.key_name != None:
|
||||||
self.push(self.inventory, self.to_safe('key_' + instance.key_name), dest)
|
self.push(self.inventory, self.to_safe('key_' + instance.key_name), dest)
|
||||||
|
|
||||||
# Inventory: Group by security group
|
# Inventory: Group by security group
|
||||||
|
|
Loading…
Reference in a new issue