cli/command/system: don't use "non-distributable-artifacts" fields in tests

Nondistributable artifacts are deprecated, and no longer used; we'll be
deprecating these fields, so let's already skip their use.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2024-12-07 12:24:59 +01:00
parent 66dfe6d428
commit b51a71148f
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C

View File

@ -70,8 +70,6 @@ var sampleInfoNoSwarm = system.Info{
Architecture: "x86_64", Architecture: "x86_64",
IndexServerAddress: "https://index.docker.io/v1/", IndexServerAddress: "https://index.docker.io/v1/",
RegistryConfig: &registrytypes.ServiceConfig{ RegistryConfig: &registrytypes.ServiceConfig{
AllowNondistributableArtifactsCIDRs: nil,
AllowNondistributableArtifactsHostnames: nil,
InsecureRegistryCIDRs: []*registrytypes.NetIPNet{ InsecureRegistryCIDRs: []*registrytypes.NetIPNet{
{ {
IP: net.ParseIP("127.0.0.0"), IP: net.ParseIP("127.0.0.0"),