Fix crash tickled by supplying partial image id.

This commit is contained in:
chris warth 2015-08-05 11:03:04 -07:00
parent c4fa776981
commit 9628e24320

View file

@ -101,7 +101,7 @@ func (x *ImagesCommand) Execute(args []string) error {
for _, image := range *images {
// check if the start image arg matches an image id
if strings.Index(image.Id, startImageArg) == 0 {
startImage = startImageArg
startImage = image.Id
break IMAGES
}