MCPcopy Create free account
hub / github.com/saltstack/salt / run

Method run

salt/cli/ssh.py:12–22  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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()

Callers 2

salt_sshFunction · 0.95

Calls 3

runMethod · 0.95
parse_argsMethod · 0.45
destroyMethod · 0.45

Tested by 1