Skip to content

Commit 26c28d7

Browse files
Merge pull request openshift#7954 from andfasano/fix-nmstate-error-msg
NO-ISSUE: test fix to support slightly different nmstate error messages
2 parents 46848be + 32207cf commit 26c28d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/asset/agent/image/ignition_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func TestIgnition_addStaticNetworkConfig(t *testing.T) {
155155
NetworkYaml: "interfaces:\n- ipv4:\n address:\n - ip: bad-ip\n prefix-length: 24\n enabled: true\n mac-address: 52:54:01:aa:aa:a1\n name: eth0\n state: up\n type: ethernet\n",
156156
},
157157
},
158-
expectedError: "failed to create StaticNetwork config data: failed to create static config for host 0: failed to execute 'nmstatectl gc', error: invalid IP address syntax",
158+
expectedError: ".*invalid IP address syntax",
159159
expectedFileList: nil,
160160
},
161161
}

0 commit comments

Comments
 (0)