mirror of
https://github.com/letic/terraform-provider-proxmox.git
synced 2024-07-05 17:12:38 +00:00
Merge pull request #36 from jereksel/either_clone_or_iso
Show message when neither clone nor iso is set
This commit is contained in:
commit
17bf67cc2c
|
@ -421,6 +421,8 @@ func resourceVmQemuCreate(d *schema.ResourceData, meta interface{}) error {
|
||||||
pmParallelEnd(pconf)
|
pmParallelEnd(pconf)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
return fmt.Errorf("Either clone or iso must be set")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.Printf("[DEBUG] recycling VM vmId: %d", vmr.VmId())
|
log.Printf("[DEBUG] recycling VM vmId: %d", vmr.VmId())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user