def setupPrivateLogs(self, privateLogDir):

        # Handle the input provided (either a bool or a path)
        if isinstance(privateLogDir, bool):
            if privateLogDir is False:
                return
            privateLogDir = '/var/log/mininext/%s' % (self.name)
        elif not isinstance(privateLogDir, basestring):
            raise Exception("Invalid parameter for privateLogDir\n")

        # Create the PathProperties and MountProperties objects
        logPathProperties = PathProperties(path=privateLogDir,
                                           perms=getObjectPerms('/var/log'),
                                           create=True,
                                           createRecursive=True,
                                           setPerms=False)
        logMount = MountProperties(target='/var/log', source=logPathProperties)

        # Pass the created mountPoint off...
        self.setupMountPoint(logMount)

        # Mark the node as having private run space
        self.hasPrivateLogs = True
Validate passed methods variable.
dataset/ETHPy150Open USC-NSL/miniNExT/mininext/node.py/Node.setupPrivateLogs--crossover with--dataset/ETHPy150Open Relrin/aiorest-ws/aiorest_ws/validators.py/MethodValidator.validate