Add missing resource reference in FrontendIPConfigurations

Change the value of the "public_ip_address" field  from a
dictionary to an instance of hnv.client.Resource.

Change-Id: I2e85a7cdd42199c845526e063b7a8dbb803ee219
This commit is contained in:
Alexandru Coman 2017-03-20 17:02:19 +02:00
parent b577feb7e7
commit 2d85269cd3
No known key found for this signature in database
GPG Key ID: A7B6A9021F704507
1 changed files with 5 additions and 0 deletions

View File

@ -2155,6 +2155,11 @@ class FrontendIPConfigurations(_BaseHNVModel):
resource = Resource.from_raw_data(raw_content)
properties["subnet"] = resource
raw_content = properties.get("publicIPAddress", None)
if raw_content is not None:
resource = Resource.from_raw_data(raw_content)
properties["publicIPAddress"] = resource
return super(FrontendIPConfigurations, cls).process_raw_data(raw_data)