func ApplicationDisplayStatus(applicationStatus, operatorStatus StatusInfo, expectWorkload bool) StatusInfo {
	if applicationStatus.Status == Terminated {
		return applicationStatus
	}
	// Only interested in the operator status if it's not running/active.
	if operatorStatus.Status == Running || operatorStatus.Status == Active {
		return applicationStatus
	}

	if operatorStatus.Status == Waiting && !expectWorkload {
		operatorStatus.Message = MessageInstallingAgent
	}
	return operatorStatus

}
// ApplicationDisplayStatus determines which of the two statuses to use when
// displaying application status in a CAAS model.
ApplicationDisplayStatus determines which of the two statuses to use when
displaying application status in a CAAS model.
// ApplicationDisplayStatus determines which of the two statuses to use when // displaying application status in a CAAS model .
func ApplicationDisplayStatus(applicationStatus, operatorStatus StatusInfo, expectWorkload bool) StatusInfo {
	if applicationStatus.Status == Terminated {
		return applicationStatus
	}
	if operatorStatus.Status == Running || operatorStatus.Status == Active {
		return applicationStatus
	}
	if operatorStatus.Status == Waiting && !expectWorkload {
		operatorStatus.Message = MessageInstallingAgent
	}
	return operatorStatus
}
func ApplicationDisplayStatus ( applicationStatus , operatorStatus StatusInfo , expectWorkload bool ) StatusInfo { if applicationStatus . Status == Terminated { return applicationStatus } if operatorStatus . Status == Running || operatorStatus . Status == Active { return applicationStatus } if operatorStatus . Status == Waiting && ! expectWorkload { operatorStatus . Message = MessageInstallingAgent } return operatorStatus }
ApplicationDisplayStatus determines which of the two statuses to use when
displaying application status in a CAAS model.
ApplicationDisplayStatus determines which of the two statuses to use when displaying application status in a CAAS model .
// Only interested in the operator status if it's not running/active.