This commit is contained in:
Kris Childress 2016-12-07 00:13:26 -07:00
parent db11e113d9
commit 7377250a13
2 changed files with 2 additions and 1 deletions

@ -1 +1 @@
Subproject commit 5b9ef417329fea35e35f510ede2042ad6386dd49
Subproject commit 82c2538cf7541383a3d203e1d850331a507bc80c

View File

@ -49,6 +49,7 @@ func (e *NatGateway) Find(c *fi.Context) (*NatGateway, error) {
var filters []*ec2.Filter
filters = append(filters, awsup.NewEC2Filter("key", "AssociatedNatgateway"))
if e.Subnet.ID == nil {
glog.V(2).Infof("Unable to find subnet, bypassing Find() for NGW")
return nil, nil
}
filters = append(filters, awsup.NewEC2Filter("resource-id", *e.Subnet.ID))