Skip to content

Commit

Permalink
Fix panic
Browse files Browse the repository at this point in the history
  • Loading branch information
rifelpet committed Apr 13, 2024
1 parent 907e58b commit 8180a60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/resources/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ func DumpInstance(op *resources.DumpOperation, r *resources.Resource) error {
data["raw"] = r.Obj
op.Dump.Resources = append(op.Dump.Resources, data)

ec2Instance := r.Obj.(*ec2types.Instance)
ec2Instance := r.Obj.(ec2types.Instance)
i := &resources.Instance{
Name: r.ID,
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/aws/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func DumpSubnet(op *resources.DumpOperation, r *resources.Resource) error {
data["raw"] = r.Obj
op.Dump.Resources = append(op.Dump.Resources, data)

ec2Subnet := r.Obj.(*ec2types.Subnet)
ec2Subnet := r.Obj.(ec2types.Subnet)
s := &resources.Subnet{
ID: aws.ToString(ec2Subnet.SubnetId),
Zone: aws.ToString(ec2Subnet.AvailabilityZone),
Expand Down

0 comments on commit 8180a60

Please sign in to comment.