Skip to content

Commit

Permalink
clarify the rpc reqs with a info statement to console
Browse files Browse the repository at this point in the history
  • Loading branch information
damianoneill committed Nov 14, 2019
1 parent 33cc805 commit 8151741
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/configure_devices.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,12 @@ func applyNetconfRPC(devicesFiles []string, rpcFilename string) (err error) {
}
for _, d := range devices.Device {
rpcError := sendRPC(d, rpcFile)
fmt.Fprintf(os.Stdout, "Problem with configuring Device %v: %v", d.DeviceID, rpcError)
// do not error out, could be device is gone, continue trying others
if rpcError != nil {
fmt.Fprintf(os.Stdout, "Problem with Device %v: %v", d.DeviceID, rpcError)
// do not error out, could be device is gone, continue trying others
}
}
fmt.Fprintf(os.Stdout, "Sent request to %v Devices defined in %v\n", devices.Count(), device)
}
return
}
Expand Down

0 comments on commit 8151741

Please sign in to comment.