def maxArg(): if retry: raise MountException("Checking commands on remote host didn't return any output. " "We already checked the maximum argument lenght but it seem like " "there is an other problem") logger.warning('Looks like the command was to long for remote SSHd. We will test max arg length now and retry.', self) import sshMaxArg mid = sshMaxArg.maxArgLength(self.config) sshMaxArg.reportResult(self.host, mid) self.config.setSshMaxArgLength(mid, self.profile_id) return self.checkRemoteCommands(retry = True)