From 21ed9d7c668b83e1385a5d9f91d2a002b3e2ffa7 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Tue, 19 Oct 2021 16:02:53 -0500 Subject: [PATCH] remove reference to resourceInfo['owner'] to work around problem with vRA 8.6 --- pom.xml | 2 +- src/main/python/allocate_ip/source.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index c830ca5..696354f 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,7 @@ conditions of the subcomponent's license, as noted in the LICENSE file. phpIPAM phpIPAM integration for vRA - 1.0.3 + 1.0.4 false true diff --git a/src/main/python/allocate_ip/source.py b/src/main/python/allocate_ip/source.py index fa9e2e1..8321297 100644 --- a/src/main/python/allocate_ip/source.py +++ b/src/main/python/allocate_ip/source.py @@ -142,13 +142,12 @@ def allocate(resource, allocation, context, endpoint, bundle): def allocate_in_range(range_id, resource, allocation, context, endpoint, bundle): if int(allocation['size']) ==1: vmName = resource['name'] - owner = resource['owner'] uri = bundle['uri'] token = bundle['token'] cert = bundle['cert'] payload = { 'hostname': vmName, - 'description': f'Reserved by vRA for {owner} at {datetime.now()}' + 'description': f'Reserved by vRA at {datetime.now()}' } allocate_uri = f'{uri}/addresses/first_free/{str(range_id)}/' allocate_req = requests.post(allocate_uri, data=payload, headers=token, verify=cert)