libcni: return error if Type is empty
authorDan Williams <dcbw@redhat.com>
Fri, 18 Aug 2017 03:33:23 +0000 (22:33 -0500)
committerDan Williams <dcbw@redhat.com>
Fri, 18 Aug 2017 03:34:33 +0000 (22:34 -0500)
commit95599124da280c25d64f63ea25b87dc1b67f815e
tree16f8ec074971625622b8862355feccd7aee26130
parenta7885cb6f8ab03fba07852ded351e4f5e7a112bf
libcni: return error if Type is empty

A network config missing Type is pretty useless since it means we can't
find the plugin to execute.  So return an error if Type isn't given.
libcni/conf.go
libcni/conf_test.go