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)
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)