def installAgent(Framework): if not AgentUtils.agentInstallRoutine(Framework): Framework.reportError(inventoryerrorcodes.INVENTORY_DISCOVERY_FAILED_AGENT_INSTALL, None) Framework.setStepExecutionStatus(WorkflowStepStatus.FATAL_FAILURE) else: Framework.setStepExecutionStatus(WorkflowStepStatus.SUCCESS)