Skip to content

Commit

Permalink
Fixes errors for application security groups under different subscrip…
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred-sun authored Sep 14, 2024
1 parent 0ffbfd2 commit ca381c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/azure_rm_networkinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ def exec_module(self, **kwargs):
if asg.get('name') is None:
self.fail("If the element of application_security_groups is a dictionary, you must define 'name'.")
asg_resource_id = format_resource_id(val=asg['name'],
subscription_id=self.subscription_id,
subscription_id=asg.get('subscription_id', self.subscription_id),
namespace='Microsoft.Network',
types='applicationSecurityGroups',
resource_group=asg.get('resource_group', self.resource_group))
Expand Down

0 comments on commit ca381c6

Please sign in to comment.