func (o *OpenShift) GetInfrastructureID() (string, error) {
	infra, err := o.getInfrastructure()
	if err != nil {
		return "", err
	}
	if infra.Status == (config.InfrastructureStatus{}) {
		return "", fmt.Errorf("infrastructure status is nil")
	}
	return infra.Status.InfrastructureName, nil
}
// GetInfrastructureID returns the infrastructure ID of the OpenShift cluster or an error.
GetInfrastructureID returns the infrastructure ID of the OpenShift cluster or an error.
// GetInfrastructureID returns the infrastructure ID of the OpenShift cluster or an error .
func (o *OpenShift) GetInfrastructureID() (string, error) {
	infra, err := o.getInfrastructure()
	if err != nil {
		return "", err
	}
	if infra.Status == (config.InfrastructureStatus{}) {
		return "", fmt.Errorf("infrastructure status is nil")
	}
	return infra.Status.InfrastructureName, nil
}
func ( o * OpenShift ) GetInfrastructureID ( ) ( string , error ) { infra , err := o . getInfrastructure ( ) if err != nil { return " " , err } if infra . Status == ( config . InfrastructureStatus { } ) { return " " , fmt . Errorf ( " " ) } return infra . Status . InfrastructureName , nil }
GetInfrastructureID returns the infrastructure ID of the OpenShift cluster or an error.
GetInfrastructureID returns the infrastructure ID of the OpenShift cluster or an error .