Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
nagworld9 committed Nov 21, 2024
1 parent 522d184 commit 566bb9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions azurelinuxagent/common/osutil/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ def _delete_rule(self, rule):
Continually execute the delete operation until the return
code is non-zero or the limit has been reached.
"""
logger.info("Deleting rule: {0}".format(rule))
for i in range(1, 100): # pylint: disable=W0612
try:
rc = shellutil.run_command(rule) # pylint: disable=W0612
Expand Down Expand Up @@ -297,6 +298,7 @@ def enable_firewall(self, dst_ip, uid):
try:
missing_rules.extend(AddFirewallRules.get_missing_iptables_rules(wait, dst_ip, uid))
if len(missing_rules) > 0:
logger.info("Missing rules: {0}".format(missing_rules))
self.remove_firewall(dst_ip, uid, wait)
AddFirewallRules.add_iptables_rules(wait, dst_ip, uid)
except CommandError as e:
Expand Down

0 comments on commit 566bb9d

Please sign in to comment.