- def BuildCmd(self, hostname, user, command, batch=True, ask_key=False):
+ def __init__(self, sstore=None):
+ if sstore is None:
+ self.sstore = ssconf.SimpleStore()
+ else:
+ self.sstore = sstore
+
+ def _GetHostKeyAliasOption(self):
+ return "-oHostKeyAlias=%s" % self.sstore.GetClusterName()
+
+ def BuildCmd(self, hostname, user, command, batch=True, ask_key=False,
+ tty=False):