// Note that the ordering is significant here - the first disk must be the boot disk.
List<PersistentDisk> disks = Lists.newArrayList();
if (!tryFind(options.getDisks(), isBootDisk()).isPresent()) {
Disk bootDisk = createBootDisk(template, name);
disks.add(new PersistentDisk(Mode.READ_WRITE,
bootDisk.getSelfLink(),
null,
true,
true));
}