modules: misc: Use the less ambiguous import name
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
# additional permission.
|
# additional permission.
|
||||||
|
|
||||||
import "golang"
|
import "golang"
|
||||||
import "golang/strings"
|
import "golang/strings" as golang_strings
|
||||||
import "iter"
|
import "iter"
|
||||||
import "local"
|
import "local"
|
||||||
import "net"
|
import "net"
|
||||||
@@ -214,7 +214,7 @@ class network_manager_dhcp($st) {
|
|||||||
$dev = $st->dev || "eth0"
|
$dev = $st->dev || "eth0"
|
||||||
|
|
||||||
$dns = $st->dns || ["8.8.8.8",]
|
$dns = $st->dns || ["8.8.8.8",]
|
||||||
$dns_str = strings.join($dns, ";") # the line also ends with a semicolon
|
$dns_str = golang_strings.join($dns, ";") # the line also ends with a semicolon
|
||||||
$tmpl =
|
$tmpl =
|
||||||
"
|
"
|
||||||
[connection]
|
[connection]
|
||||||
@@ -272,7 +272,7 @@ class network_manager_static($st) {
|
|||||||
$dns = $st->dns || ["8.8.8.8",]
|
$dns = $st->dns || ["8.8.8.8",]
|
||||||
$vips []str = $st->vips || [] # []cidr
|
$vips []str = $st->vips || [] # []cidr
|
||||||
|
|
||||||
$dns_str = strings.join($dns, ";") # the line also ends with a semicolon
|
$dns_str = golang_strings.join($dns, ";") # the line also ends with a semicolon
|
||||||
$tmpl =
|
$tmpl =
|
||||||
"
|
"
|
||||||
[connection]
|
[connection]
|
||||||
|
|||||||
Reference in New Issue
Block a user