Skip to content

Commit 5c8bf63

Browse files
author
Peter Jönsson
committed
Add some debug printout
1 parent 3026cae commit 5c8bf63

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

wait.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func (c CloudStackClient) WaitForAsyncJob(jobId string, timeout time.Duration) e
2525
return
2626
}
2727

28-
// check what the real state will be.
28+
// job is completed, we can exit
2929
if status == 1 {
3030
result <- nil
3131
return
@@ -75,6 +75,8 @@ func (c CloudStackClient) WaitForVirtualMachineState(vmid string, wanted_state s
7575
}
7676

7777
// check what the real state will be.
78+
log.Printf("current_state: %s", current_state)
79+
log.Printf("wanted_state: %s", wanted_state)
7880
if current_state == wanted_state {
7981
result <- nil
8082
return

0 commit comments

Comments
 (0)