Skip to content

Commit

Permalink
Use strings where needed in InterfaceConfigBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Aug 1, 2019
1 parent 6974a90 commit 8bb334a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/y2network/interface_config_builder.rb
Expand Up @@ -256,9 +256,9 @@ def aliases

new_aliases = @connection_config.ip_aliases.map do |data|
{
label: data.label,
ip: data.address.address,
prefixlen: data.address.prefix
label: data.label.to_s,
ip: data.address.address.to_s,
prefixlen: data.address.prefix.to_s,
# NOTE: new API does not have netmask at all, we need to adapt UI to clearly mention only prefix
}
end
Expand Down Expand Up @@ -294,7 +294,7 @@ def ip_address

default = @connection_config.ip
new_ = if default
default.address.address
default.address.address.to_s
else
""
end
Expand Down

0 comments on commit 8bb334a

Please sign in to comment.