Commit 85c0ca20 authored by Laine Stump's avatar Laine Stump Committed by Daniel P. Berrangé

Fix typo/bug in get_network_ip

Reviewed-by: 's avatarDaniel P. Berrangé <berrange@redhat.com>
Signed-off-by: 's avatarLaine Stump <laine@laine.org>
parent 5ef27ce7
......@@ -1259,7 +1259,7 @@ sub get_network_ip {
if ($net_mask) {
$ip = NetAddr::IP->new($net_ip, $net_mask);
} elsif ($net_prefix) {
$ip = NetAddr::IP->new("$net_ip/$net_mask");
$ip = NetAddr::IP->new("$net_ip/$net_prefix");
} else {
$ip = NetAddr::IP->new("$net_ip");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment