Skip to content

Commit

Permalink
Update print_firewall_rule.php
Browse files Browse the repository at this point in the history
  • Loading branch information
SarthakAjmera26 authored Oct 4, 2024
1 parent 21e666b commit 65f1e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compute/firewall/src/print_firewall_rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function print_firewall_rule(string $projectId, string $firewallRuleName)
print('--Allowed--' . PHP_EOL);
foreach ($response->getAllowed() as $item) {
printf('Protocol: %s' . PHP_EOL, $item->getIPProtocol());
foreach ($item->getPorts()as $ports) {
foreach ($item->getPorts() as $ports) {
printf(' - Ports: %s' . PHP_EOL, $ports);
}
}
Expand Down

0 comments on commit 65f1e29

Please sign in to comment.