-
Notifications
You must be signed in to change notification settings - Fork 42
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
Azure: Fetch disk type #1370
Azure: Fetch disk type #1370
Conversation
CIS Azure 7.4
📊 Allure Report - 💚 No failures were reported.
|
28adaf7
to
f3ffd3d
Compare
@@ -40,8 +40,9 @@ type AzureResource struct { | |||
} | |||
|
|||
var AzureResourceTypes = map[string]string{ | |||
inventory.VirtualMachineAssetType: fetching.AzureVMType, | |||
inventory.DiskAssetType: fetching.AzureDiskType, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually find having two constants and a map harder to read than just having a map with hardcoded strings, since the strings are only used in this map I suggest inlining these constants.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary of your changes
Needed for CIS Azure 7.4, see elastic/csp-security-policies#311
Related Issues
Checklist