Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1108: Make GraphJob check only for missing params #1109

Merged
merged 1 commit into from
Feb 6, 2023
Merged

Conversation

achantavy
Copy link
Contributor

Fixes #1108.

  • Changes GraphJob.from_node_schema() to check only for missing params instead of for an exact match. This is because other modules use the parameters dict to pass around extra data, so we should only be throwing an error if the GraphJob does not have what it needs.
  • Standardizes on use of AWS_ID for the sub resource matcher.

Background
cartography intel modules often add a key to the common_job_parameters dict that is used to specify a sub resource ID -- example AWS_ID for an AWS account and OKTA_ORG_ID for an Okta organization. We should use this key name for sub resource TargetNodeMatchers during node creation so that autocleanup can properly happen.

@Yueren-Wang Yueren-Wang merged commit 769c6ac into master Feb 6, 2023
@Yueren-Wang Yueren-Wang deleted the fix1108 branch February 6, 2023 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unexpected query parameters error during AWS EMR sync on version 0.73.0
2 participants