Add debug msg after running command in instance

This commit is contained in:
marcos
2018-01-14 17:32:44 -03:00
parent f330b35057
commit 56379065ae

View File

@@ -294,6 +294,8 @@ func (p *pwd) SessionSetup(session *types.Session, sconf SessionSetupConf) error
var errch chan error var errch chan error
go func() { go func() {
exitCode, err := p.InstanceExec(i, cmd) exitCode, err := p.InstanceExec(i, cmd)
fmt.Printf("Finished execuing command [%s] on instance %s with code [%d] and err [%v]", cmd, i.Name, exitCode, err)
if err != nil { if err != nil {
errch <- err errch <- err
} }