plugin/autopath: Don't panic on empty token (#5169)

* dont panic on empty token

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
Chris O'Haver 2022-02-10 09:00:27 -05:00 committed by GitHub
parent c5eb7d0460
commit fe9ba42590
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -33,6 +33,7 @@ func TestSetupAutoPath(t *testing.T) {
// negative
{`autopath kubernetes`, true, "", "", nil, "open kubernetes: no such file or directory"},
{`autopath`, true, "", "", nil, "no resolv-conf"},
{`autopath ""`, true, "", "", nil, "no such file"},
}
for i, test := range tests {