executeGetSystem executes getsystem command
(ctx context.Context, client *csclient.Client, beaconID string)
| 831 | |
| 832 | // executeGetSystem executes getsystem command |
| 833 | func (e *Executor) executeGetSystem(ctx context.Context, client *csclient.Client, beaconID string) (string, error) { |
| 834 | resp, err := client.GetSystem(ctx, beaconID) |
| 835 | if err != nil { |
| 836 | return "", err |
| 837 | } |
| 838 | |
| 839 | return e.waitForOutput(ctx, client, resp.TaskID) |
| 840 | } |
| 841 | |
| 842 | // executeSleep pauses execution |
| 843 | func (e *Executor) executeSleep(action Action) (string, error) { |
no test coverage detected