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

Add 4 new variables for NSGRuleSummary #1332

Merged

Conversation

DamianJarzebowski
Copy link

Description

It will add only new variables in struct NsgRuleSummary, it will not change functionality.

I use function GetAllNSGRules and at it function FindRuleByName but currently it return empty value if your rule have list of strings for variables.

  • SourcePortRange
  • DestinationPortRange
  • SourceAddressPrefix
  • DestinationAddressPrefix

Variables returned from network.SecurityRulePropertiesFormat in method convertToNsgRuleSummary, so solve problem is easy and all to do is catch this values.

If i add in to struct NsgRuleSummary variables

  • SourcePortRanges []string
  • DestinationPortRanges []string
  • SourceAdresssPrefixes []string
  • DestinationAddressPrefixes []string

And assign them to values from rules in convertToNsgRuleSummary then function FindRuleByName should return for me expected data with all []string where are need.

@denis256 denis256 merged commit 5428fbc into gruntwork-io:master Aug 27, 2023
3 checks passed
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.

None yet

2 participants