Skip to content

Commit

Permalink
ssh_forward_ip optional with cloud-init
Browse files Browse the repository at this point in the history
  • Loading branch information
Grant Gongaware committed Jul 16, 2018
1 parent e83e6af commit a61e8d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proxmox/resource_vm_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func resourceVmQemu() *schema.Resource {
},
"ssh_forward_ip": {
Type: schema.TypeString,
Required: true,
Optional: true,
},
"iso": {
Type: schema.TypeString,
Expand Down Expand Up @@ -348,6 +348,7 @@ func resourceVmQemuCreate(d *schema.ResourceData, meta interface{}) error {

case "cloud-init":
// wait for OS too boot awhile...
log.Print("[DEBUG] sleeping for OS bootup...")
time.Sleep(time.Duration(d.Get("ci_wait").(int)) * time.Second)

default:
Expand Down

0 comments on commit a61e8d5

Please sign in to comment.