예제 #1
0
def checkOSVersion(Framework):

    if AgentUtils.isOSVersionSupported(Framework):

        Framework.setStepExecutionStatus(WorkflowStepStatus.SUCCESS)
    else:
        logger.debug('Could not determine os version to install using the identification output')

        Framework.reportError(inventoryerrorcodes.INVENTORY_DISCOVERY_REMOTE_OS_VERSION_NOT_SUPPORTED, None)
        Framework.setStepExecutionStatus(WorkflowStepStatus.FAILURE)
예제 #2
0
def checkOSVersion(Framework):

    if AgentUtils.isOSVersionSupported(Framework):

        Framework.setStepExecutionStatus(WorkflowStepStatus.SUCCESS)
    else:
        logger.debug(
            'Could not determine os version to install using the identification output'
        )

        Framework.reportError(
            inventoryerrorcodes.
            INVENTORY_DISCOVERY_REMOTE_OS_VERSION_NOT_SUPPORTED, None)
        Framework.setStepExecutionStatus(WorkflowStepStatus.FAILURE)