mirror of
https://github.com/apple/container.git
synced 2026-09-12 10:45:42 +00:00
dns config should have options not opts (#303)
Signed-off-by: crosbymichael <michael_crosby@apple.com>
This commit is contained in:
@@ -60,7 +60,7 @@ extension DNS {
|
||||
}
|
||||
|
||||
if !options.isEmpty {
|
||||
text += "opts \(options.joined(separator: " "))\n"
|
||||
text += "options \(options.joined(separator: " "))\n"
|
||||
}
|
||||
|
||||
return text
|
||||
|
||||
@@ -29,7 +29,7 @@ struct DNSTests {
|
||||
options: ["ndots:2", "timeout:1"]
|
||||
)
|
||||
|
||||
let expected = "nameserver 8.8.8.8\nnameserver 1.1.1.1\ndomain example.com\nsearch internal.com test.com\nopts ndots:2 timeout:1\n"
|
||||
let expected = "nameserver 8.8.8.8\nnameserver 1.1.1.1\ndomain example.com\nsearch internal.com test.com\noptions ndots:2 timeout:1\n"
|
||||
#expect(dns.resolvConf == expected)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user