Example #1
0
    def checkSettings(self):
        """
        Check the sanity of the settings in this object.

        This method is called after all calls to parseSetting(...) have been done.
        Any defaults may be set here as well.

        An Exception is raised in the case of insanity.
        """
        host.checkSettings(self)
Example #2
0
    def checkSettings(self):
        """
        Check the sanity of the settings in this object.

        This method is called after all calls to parseSetting(...) have been done.
        Any defaults may be set here as well.

        An Exception is raised in the case of insanity.
        """
        if not self.remoteDirectory:
            self.remoteDirectory = "."  # Since a temporary directory would otherwise be created...
        host.checkSettings(self)
Example #3
0
    def checkSettings(self):
        """
        Check the sanity of the settings in this object.

        This method is called after all calls to parseSetting(...) have been done.
        Any defaults may be set here as well.

        An Exception is raised in the case of insanity.
        """
        host.checkSettings(self)
        if not self.hostname:
            raise Exception( "The hostname parameter to an SSH connection is required" )
        if not self.port:
            self.port = 22
        if not paramiko and not self.user:
            self.user = getpass.getuser()