def postOptions(self):
        # Mandatory parameters
        # Validate image
        if self['image'] is None:
            raise usage.UsageError(
                "image parameter must be provided"
            )
        # Validate mountpoint
        if self['mountpoint'] is None:
            raise usage.UsageError("mountpoint is a mandatory parameter")
        else:
            try:
                FilePath(self['mountpoint'])
            except __HOLE__:
                raise usage.UsageError("mountpoint has to be an absolute path")
        # Validate app per node
        if self['apps-per-node'] is None:
            raise usage.UsageError("apps-per-node is a mandatory parameter")
        else:
            try:
                self['apps-per-node'] = int(self['apps-per-node'])
            except ValueError:
                raise usage.UsageError("apps-per-node has to be an integer")
        # Validate control node
        if self['control-node'] is None:
            raise usage.UsageError("control-node is a mandatory parameter")
        else:
            try:
                IPAddress(self['control-node'])
            except ValueError:
                raise usage.UsageError("control-node has to be an IP address")
        # Validate certificate directory
        if self['cert-directory'] is None:
            raise usage.UsageError("cert-directory is a mandatory parameter")

        # Validate optional parameters
        # Note that we don't check if those parameters are None, because
        # all of them have default value and can't be none. If they are,
        # and exception will be raised
        try:
            self['max-size'] = int(self['max-size'])
        except ValueError:
            raise usage.UsageError(
                "The max-size timeout must be an integer.")

        try:
            self['wait'] = timedelta(seconds=int(self['wait']))
        except ValueError:
            raise usage.UsageError("The wait timeout must be an integer.")
dataset/ETHPy150Open ClusterHQ/flocker/benchmark/cluster_containers_setup.py/ContainerOptions.postOptions