mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
120241937e
The current validation only checked for the number of elements in the volume-spec, however, did not validate if the elements were empty. Because of this, an empty volume-spec (""), or volume spec only containing separators ("::") would not be invalidated. This adds a simple check for empty elements in the volume-spec, and returns an error if the spec is invalid. A unit-test is also added to verify the behavior. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
command | ||
compose/convert | ||
flags | ||
trust | ||
cobra.go | ||
error.go | ||
required.go |