(self)
| 10 | """ |
| 11 | |
| 12 | def run(self): |
| 13 | if "-H" in sys.argv or "--hosts" in sys.argv: |
| 14 | sys.argv += ["x", "x"] # Hack: pass a mandatory two options |
| 15 | # that won't be used anyways with -H or --hosts |
| 16 | self.parse_args() |
| 17 | |
| 18 | ssh = salt.client.ssh.SSH(self.config) |
| 19 | try: |
| 20 | ssh.run() |
| 21 | finally: |
| 22 | ssh.fsclient.destroy() |