Revision 651ce6a3 lib/ssh.py
b/lib/ssh.py | ||
---|---|---|
248 | 248 |
""" |
249 | 249 |
return utils.RunCmd(self.BuildCmd(*args, **kwargs)) |
250 | 250 |
|
251 |
def CopyFileToNode(self, node, filename): |
|
251 |
def CopyFileToNode(self, node, port, filename):
|
|
252 | 252 |
"""Copy a file to another node with scp. |
253 | 253 |
|
254 | 254 |
@param node: node in the cluster |
... | ... | |
267 | 267 |
return False |
268 | 268 |
|
269 | 269 |
command = [constants.SCP, "-p"] |
270 |
command.extend(self._BuildSshOptions(True, False, True, True)) |
|
270 |
command.extend(self._BuildSshOptions(True, False, True, True, port=port))
|
|
271 | 271 |
command.append(filename) |
272 | 272 |
if netutils.IP6Address.IsValid(node): |
273 | 273 |
node = netutils.FormatAddress((node, None)) |
Also available in: Unified diff