func (o *OpenShift) GetCloudProvider() (*config.PlatformStatus, error) {
	infra, err := o.getInfrastructure()
	if err != nil {
		return nil, err
	}
	if infra.Status == (config.InfrastructureStatus{}) || infra.Status.PlatformStatus == nil {
		return nil, fmt.Errorf("error getting infrastructure status")
	}
	return infra.Status.PlatformStatus, nil
}
// GetCloudProvider returns the Provider details of a given OpenShift client including provider type and region or
// an error.
GetCloudProvider returns the Provider details of a given OpenShift client including provider type and region or
an error.
// GetCloudProvider returns the Provider details of a given OpenShift client including provider type and region or // an error .
func (o *OpenShift) GetCloudProvider() (*config.PlatformStatus, error) {
	infra, err := o.getInfrastructure()
	if err != nil {
		return nil, err
	}
	if infra.Status == (config.InfrastructureStatus{}) || infra.Status.PlatformStatus == nil {
		return nil, fmt.Errorf("error getting infrastructure status")
	}
	return infra.Status.PlatformStatus, nil
}
func ( o * OpenShift ) GetCloudProvider ( ) ( * config . PlatformStatus , error ) { infra , err := o . getInfrastructure ( ) if err != nil { return nil , err } if infra . Status == ( config . InfrastructureStatus { } ) || infra . Status . PlatformStatus == nil { return nil , fmt . Errorf ( " " ) } return infra . Status . PlatformStatus , nil }
GetCloudProvider returns the Provider details of a given OpenShift client including provider type and region or
an error.
GetCloudProvider returns the Provider details of a given OpenShift client including provider type and region or an error .