func (m *DefaultManager) FindOrg(orgName string) (cfclient.Org, error) {
	orgs, err := m.ListOrgs()
	if err != nil {
		return cfclient.Org{}, err
	}
	for _, theOrg := range orgs {
		if theOrg.Name == orgName {
			return theOrg, nil
		}
	}
	if m.Peek {
		return cfclient.Org{
			Name: orgName,
			Guid: fmt.Sprintf("%s-dry-run-org-guid", orgName),
		}, nil
	}
	return cfclient.Org{}, fmt.Errorf("org %q not found", orgName)
}
func (m *DefaultManager) FindOrg(orgName string) (cfclient.Org, error) {
	orgs, err := m.ListOrgs()
	if err != nil {
		return cfclient.Org{}, err
	}
	for _, theOrg := range orgs {
		if theOrg.Name == orgName {
			return theOrg, nil
		}
	}
	if m.Peek {
		return cfclient.Org{
			Name: orgName,
			Guid: fmt.Sprintf("%s-dry-run-org-guid", orgName),
		}, nil
	}
	return cfclient.Org{}, fmt.Errorf("org %q not found", orgName)
}
func ( m * DefaultManager ) FindOrg ( orgName string ) ( cfclient . Org , error ) { orgs , err := m . ListOrgs ( ) if err != nil { return cfclient . Org { } , err } for _ , theOrg := range orgs { if theOrg . Name == orgName { return theOrg , nil } } if m . Peek { return cfclient . Org { Name : orgName , Guid : fmt . Sprintf ( " " , orgName ) , } , nil } return cfclient . Org { } , fmt . Errorf ( " " , orgName ) }
//FindOrg -
FindOrg -