Comments (5)
Do you get a nil pointer dereference
? You also have to check if classifier.GrokClassifier
is not nil
. It could be nil
, since it is a pointer. And if it is nil
accessing Name
will give you an error.
Does this help or is there another problem?
from aws-nuke.
The way I have it now I get
ERRO[0002] Listing with resources.ResourceLister failed. Please report this to https://github.com/rebuy-de/aws-nuke/issues/new.
!!! runtime error: invalid memory address or nil pointer dereference
Any time the Classifer object isnt the first if statement
from aws-nuke.
Try this:
if classifier.GrokClassifier != nil && classifier.GrokClassifier.Name != nil {
from aws-nuke.
OK, I dont know what I did or did not do, but I fixed it. I think I had a left over .Name when I was just checking for the object type....
from aws-nuke.
for _, classifier := range output.Classifiers {
if classifier.GrokClassifier != nil {
resources = append(resources, &GlueClassifier{
svc: svc,
name: classifier.GrokClassifier.Name,
})
} else if classifier.JsonClassifier != nil {
resources = append(resources, &GlueClassifier{
svc: svc,
name: classifier.JsonClassifier.Name,
})
} else if classifier.XMLClassifier != nil {
resources = append(resources, &GlueClassifier{
svc: svc,
name: classifier.XMLClassifier.Name,
})
}
}
This is what I have now. I would have rather done it in a switch but this seems ok
from aws-nuke.
Related Issues (20)
- Deletion of SecretsManager secret with replica
- Support for CloudFront Response Headers Policy
- Support for Eventbridge Schedules HOT 1
- SIGSEGV: segmentation violation HOT 3
- EKS related IAM Roles are not deleted HOT 2
- Unable to delete IAMRoles and IAMPolicies HOT 3
- aws-nuke resource-types not reporting all known resource types
- Adding support for CloudFront Cache Policy
- Failure to Delete AWS ECR Public Repositories Containing Images using Cloud Control
- Lack of pagination support for multiple list functions
- ERRO[0972] HOT 1
- Filter for all resource types.
- How to filter a resources using 2 property HOT 1
- Add support for Glue SecurityConfiguration
- GO error HOT 1
- Add support for Budget Actions
- Add support for SageMaker Space Apps and Spaces
- Unstable branch? HOT 7
- How long does aws-nuke take to delete S3 bucket with 6 GB plus HOT 1
- [DirectoryService] AWS Managed Microsoft AD fails to nuke if AD is shared with other accounts HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-nuke.