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