| Total Complexity | 1 |
| Total Lines | 12 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | from pywinexe.api import cmd as run_cmd |
||
| 10 | class WinExeCmdAction(Action): |
||
| 11 | def run(self, host, command, password, username='Administrator'): |
||
| 12 | """ |
||
| 13 | Run command on a remote node |
||
| 14 | """ |
||
| 15 | out = run_cmd( |
||
| 16 | command, |
||
| 17 | args=[], |
||
| 18 | user=username, |
||
| 19 | password=password, |
||
| 20 | host=host) |
||
| 21 | return out |
||
| 22 |