-
Notifications
You must be signed in to change notification settings - Fork 345
Open
Labels
enhancementNew feature or requestNew feature or requestnew_featureNew feature requirmentsNew feature requirments
Description
SUMMARY
public_ip_address in azure_rm_appgateway.frontend_ip_configurations assumes a bare resource name is passed in and builds the full resource ids assuming the resource group of the gateway matches the one of the public ip:
if 'public_ip_address' in item and item['public_ip_address'] is not None:
id = public_ip_id(self.subscription_id,
kwargs['resource_group'],
item['public_ip_address'])
item['public_ip_address'] = {'id': id}
and public_ip_id() is:
def public_ip_id(subscription_id, resource_group_name, name):
"""Generate the id for a frontend ip configuration"""
return '/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Network/publicIPAddresses/{2}'.format(
subscription_id,
resource_group_name,
name
)
ISSUE TYPE
- Bug Report
COMPONENT NAME
azure_rm_appgateway
ANSIBLE VERSION
ansible [core 2.19.2]
config file = /home/em/c/co/daimler/git/ansible-playbooks/ansible.cfg
configured module search path = ['/home/em/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.11/dist-packages/ansible
ansible collection location = /home/em/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0] (/usr/bin/python3)
jinja version = 3.1.6
pyyaml version = 6.0.2 (with libyaml v0.2.5)
COLLECTION VERSION
# /usr/share/ansible/collections/ansible_collections
Collection Version
---------------------------------------- -------
ansible.posix 2.1.0
ansible.utils 6.0.0
azure.azcollection 3.8.0
community.docker 4.7.0
community.general 11.3.0
community.library_inventory_filtering_v1 1.1.1
kubernetes.core 6.1.0
STEPS TO REPRODUCE
Pass a full resource id to public_ip_address.
EXPECTED RESULTS
The resource id should be used.
ACTUAL RESULTS
The resource id is mangled as the code assume it is just a bare name.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestnew_featureNew feature requirmentsNew feature requirments