Skip to content

Commit

Permalink
[Firewall] Fix AttributeError while hitting tap to automatically comp…
Browse files Browse the repository at this point in the history
…lete the name of network rule of a firewall (#2651)
  • Loading branch information
Jianhui Harold authored Nov 10, 2020
1 parent 145619a commit 30086b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/azure-firewall/azext_firewall/_completers.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def completer(cmd, prefix, namespace, **kwargs): # pylint: disable=unused-argum
try:
firewall_name = namespace.firewall_name
except AttributeError:
firewall_name = namespace.resource_name
firewall_name = namespace.azure_firewall_name
if namespace.resource_group_name and firewall_name:
af = client.azure_firewalls.get(namespace.resource_group_name, firewall_name)
return [r.name for r in getattr(af, prop)]
Expand Down

0 comments on commit 30086b7

Please sign in to comment.