Skip to content

Commit

Permalink
fix function examples also
Browse files Browse the repository at this point in the history
  • Loading branch information
robertc99 committed Oct 10, 2023
1 parent 02b3a31 commit 2a2f9ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Convert firewall_multi type data to firewall type data.
[
{
"00100 accept inbound ssh" => {
"action" => "accept",
"jump" => "accept",
"source" => ["1.1.1.1/24", "2.2.2.2/24"],
"dport" => 22,
},
Expand All @@ -175,12 +175,12 @@ Return this:
```ruby
{
"00100 accept inbound ssh from 1.1.1.1/24" => {
"action" => "accept",
"jump" => "accept",
"source" => "1.1.1.1/24",
"dport" => 22,
},
"00100 accept inbound ssh from 2.2.2.2/24" => {
"action" => "accept",
"jump" => "accept",
"source" => "2.2.2.2/24",
"dport" => 22,
},
Expand Down
6 changes: 3 additions & 3 deletions lib/puppet/functions/firewall_multi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# [
# {
# "00100 accept inbound ssh" => {
# "action" => "accept",
# "jump" => "accept",
# "source" => ["1.1.1.1/24", "2.2.2.2/24"],
# "dport" => 22,
# },
Expand All @@ -22,12 +22,12 @@
# ```ruby
# {
# "00100 accept inbound ssh from 1.1.1.1/24" => {
# "action" => "accept",
# "jump" => "accept",
# "source" => "1.1.1.1/24",
# "dport" => 22,
# },
# "00100 accept inbound ssh from 2.2.2.2/24" => {
# "action" => "accept",
# "jump" => "accept",
# "source" => "2.2.2.2/24",
# "dport" => 22,
# },
Expand Down

0 comments on commit 2a2f9ee

Please sign in to comment.