host-local: trim whitespace from container IDs and disk file contents
authorDan Williams <dcbw@redhat.com>
Sat, 10 Dec 2016 00:16:38 +0000 (18:16 -0600)
committerDan Williams <dcbw@redhat.com>
Sat, 10 Dec 2016 00:16:38 +0000 (18:16 -0600)
commit76028d7f8c6aecc4a0ba3202d8006d8f0ae674c9
tree1a7cf04f9b279db68efbde268412012c45b2649d
parentb0808a006a9ea8729dd20e35b32bb523bd8ad745
host-local: trim whitespace from container IDs and disk file contents

It doesn't seem like container IDs should really have whitespace or
newlines in them.  As a complete edge-case, manipulating the host-local
store's IP reservations with 'echo' puts a newline at the end, which
caused matching to fail in ReleaseByID().  Don't ask...
plugins/ipam/host-local/backend/disk/backend.go
plugins/ipam/host-local/host_local_test.go