Skip to content

Commit e3e6528

Browse files
authored
Merge pull request #66 from vrothberg/fix
fix running an existing VM
2 parents bab3e89 + 2ec9320 commit e3e6528

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/bootc/bootc_disk.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ func (p *BootcDisk) pullImage() error {
284284

285285
p.imageData = imageData
286286
p.ImageId = imageData.ID
287-
p.RepoTag = imageData.RepoTags[0]
287+
if len(imageData.RepoTags) > 0 {
288+
p.RepoTag = imageData.RepoTags[0]
289+
}
288290

289291
return nil
290292
}

0 commit comments

Comments
 (0)