Skip to content

Commit

Permalink
removed logs
Browse files Browse the repository at this point in the history
Signed-off-by: Shaik Mudassir <47217471+shaik80@users.noreply.github.com>
  • Loading branch information
shaik80 committed Jun 28, 2021
1 parent 85f17c9 commit 2ac387a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions components/nodemanager-service/managers/azure/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package azure
import (
"context"
"fmt"
"io/ioutil"
"strings"
"time"

Expand Down Expand Up @@ -754,9 +753,6 @@ func sendCommand(ctx context.Context, job *types.InspecJob, script string, scrip
Script: &runCommandScript,
}
logrus.Infof("calling runcommand %s with nodename %s resourcegroupname %s", scriptTypeAZ, job.NodeName, job.MachineIdentifier)
fmt.Println(":::::: sendCommand params ::::::", params)
fmt.Println(":::::: sendCommand script ::::::", script)
fmt.Println(":::::: sendCommand scriptType ::::::", scriptType)
return client.RunCommand(ctx, job.MachineIdentifier, job.NodeName, params)
}

Expand All @@ -774,8 +770,6 @@ func (creds *Creds) SendRunCommandJob(ctx context.Context, job *types.InspecJob,
job.NodeStatus = types.StatusFailed
return errors.Wrap(err, "unable to get command status")
}
data, _ := ioutil.ReadAll(future.Response().Body)
fmt.Println(":::: future Body :::: ", string(data))
logrus.Infof("azure run command job for node %s status %s", job.NodeName, future.Status())
job.NodeStatus = types.StatusCompleted
return nil
Expand Down

0 comments on commit 2ac387a

Please sign in to comment.