Merge pull request #36 from jereksel/either_clone_or_iso

Show message when neither clone nor iso is set
This commit is contained in:
Grant Gongaware 2019-01-14 14:12:30 -08:00 committed by GitHub
commit 17bf67cc2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -421,6 +421,8 @@ func resourceVmQemuCreate(d *schema.ResourceData, meta interface{}) error {
pmParallelEnd(pconf)
return err
}
} else {
return fmt.Errorf("Either clone or iso must be set")
}
} else {
log.Printf("[DEBUG] recycling VM vmId: %d", vmr.VmId())