Browse Source

add default AddressType: Fixed

Signed-off-by: Christian Mouttet <cmouttet@gmail.com>
Christian Mouttet 3 years ago
parent
commit
cdb1557cac
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      drivers/openstack/client.go

+ 4
- 3
drivers/openstack/client.go View File

@@ -171,9 +171,10 @@ func (c *GenericClient) GetInstanceIpAddresses(d *Driver) ([]IpAddress, error) {
171 171
 			}
172 172
 
173 173
 			addr := IpAddress{
174
-				Network: network,
175
-				Address: address["addr"].(string),
176
-				Version: int(version),
174
+				Network:     network,
175
+				AddressType: Fixed,
176
+				Address:     address["addr"].(string),
177
+				Version:     int(version),
177 178
 			}
178 179
 
179 180
 			if tp, ok := address["OS-EXT-IPS:type"]; ok {

Loading…
Cancel
Save