-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fixed PR #23162 #5
Conversation
This PR includes the following changes: - an idempotency fix when `profile: any` - better difference output to debug idempotency issues - documentation fixes (remove `required: false`) - Parameter handling fixes - RDP example that matches default RDP rule - Renamed parameter 'enable' to 'enabled' (kept alias) - Renamed parameter 'profile' to 'profiles' (kept alias)
@@ -114,7 +114,7 @@ function getFirewallRule ($fwsettings) { | |||
Continue | |||
} else { | |||
$diff=$true; | |||
$difference+=@("$($fwsetting.Key): $($output.$($fwsetting.Key)) vs $($fwsettings.$($fwsetting.Key))"); | |||
$difference+=@("'$($fwsetting.Key.ToLower())': '$($output.$($fwsetting.Key).ToLower())' vs '$($fwsettings.$($fwsetting.Key))'") |
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.
Change from Action: Allow vs block
to 'action': 'allow' vs 'block'
.
@@ -157,6 +157,10 @@ function createFireWallRule ($fwsettings) { | |||
$key='dir' | |||
} elseif ($fwsetting.key -eq 'Rule Name') { | |||
$key='name' | |||
} elseif ($fwsetting.key -eq 'Enabled') { |
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.
Revert firewall rule building procedure. Shippable build failed because of this.
@@ -103,7 +103,7 @@ | |||
that: | |||
- add_different_firewall_rule_without_force.failed == true | |||
- add_different_firewall_rule_without_force.changed == false | |||
- add_different_firewall_rule_without_force.difference == ["block"] | |||
- add_different_firewall_rule_without_force.difference == ["'action'{{':'}} 'allow' vs 'block'"] |
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.
Fixed the test.
208e471
to
61aaf1f
Compare
7efa8b6
to
d115b02
Compare
d115b02
to
4359099
Compare
* New module zabbix_service (#5) * new module zabbix_service * fix type * fix githubid * New Zabbix service module (ansible#11) * new zabbix service module * fix validate module failure * Fix algorithm doc and all_childs param name * Update Ansible version Co-Authored-By: sky-joker <megane@kurobuti.com> * remove dump state
In this PR I repaired firewall rule build procedure, fixed failed tests and made
$difference
string more beautiful.