def set_stack_parameters()

in source/ecs/workspaces_app.py [0:0]


def set_stack_parameters():
    """
    This method adds the input parameters for the stack to the stack_parameter object.
    """
    log.debug("Setting the stack parameters")
    for parameter in {
        'LogLevel',
        'DryRun',
        'TestEndOfMonth',
        'SendAnonymousData',
        'SolutionVersion',
        'SolutionID',
        'UUID',
        'BucketName',
        'ValueLimit',
        'StandardLimit',
        'PerformanceLimit',
        'PowerLimit',
        'PowerProLimit',
        'GraphicsLimit',
        'GraphicsProLimit',
        'TerminateUnusedWorkspaces'
    }:
        stack_parameters[parameter] = os.environ[parameter]

    for parameter in stack_parameters:
        if stack_parameters[parameter] and not stack_parameters[parameter].isspace():
            log.info('Parameter: %s, Value: %s', parameter, stack_parameters[parameter])
        else:
            log.error('No value for stack parameter: %s', parameter)
            sys.exit()
    log.debug("Successfully set the stack parameters")