Merge pull request #4848 from justinsb/toolbox_dump_subnet_fix

Fix toolbox dump bug: store subnet in resource
This commit is contained in:
k8s-ci-robot 2018-03-31 18:10:04 -07:00 committed by GitHub
commit ebae4ba447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -654,10 +654,11 @@ func ListSubnets(cloud fi.Cloud, clusterName string) ([]*resources.Resource, err
resourceTracker := &resources.Resource{
Name: FindName(subnet.Tags),
ID: subnetID,
Type: "subnet",
Type: ec2.ResourceTypeSubnet,
Deleter: DeleteSubnet,
Dumper: DumpSubnet,
Shared: shared,
Obj: subnet,
}
resourceTracker.Blocks = append(resourceTracker.Blocks, "vpc:"+aws.StringValue(subnet.VpcId))
resourceTrackers = append(resourceTrackers, resourceTracker)