[Core-Library] Fix the way of getting DNS in describe() method

This patch changes the method of getting dns address.
Previously dns could be an empty list, if user didn't configured
'default_dns' settings in murano.conf. Now it is taken from already
created subnet.

Change-Id: I5c6a831738e8d971a12bd81eff42aebc869c9a2e
Related-Bug: #1536651
This commit is contained in:
Dmytro Dovbii 2016-01-27 18:48:56 +02:00
parent 54f813f9c4
commit 275b2d2583
2 changed files with 2 additions and 2 deletions

View File

@ -152,6 +152,6 @@ Workflow:
netName: $.internalNetworkName
subnetId: $._internalSubnetworkId
cidr: $subnet.cidr
dns: $._netExplorer.getDefaultDns()
dns: $subnet.dns_nameservers
gateway: $subnet.gateway_ip
floatingIpNetId: $._externalNetworkId

View File

@ -180,7 +180,7 @@ Methods:
netId: $.openstackId
subnetId: $subnet.id
cidr: $subnet.cidr
dns: $.dnsNameservers
dns: $subnet.dns_nameservers
gateway: $subnet.gateway_ip
floatingIpNetId: $._getExternalNetId()