File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -332,6 +332,9 @@ func (s ServiceConfig) HasProfile(profiles []string) bool {
332332 return true
333333 }
334334 for _ , p := range profiles {
335+ if p == "*" {
336+ return true
337+ }
335338 for _ , sp := range s .Profiles {
336339 if sp == p {
337340 return true
@@ -345,11 +348,6 @@ func (s ServiceConfig) HasProfile(profiles []string) bool {
345348// It returns a new Project instance with the changes and keep the original Project unchanged
346349func (p * Project ) WithProfiles (profiles []string ) (* Project , error ) {
347350 newProject := p .deepCopy ()
348- for _ , p := range profiles {
349- if p == "*" {
350- return newProject , nil
351- }
352- }
353351 enabled := Services {}
354352 disabled := Services {}
355353 for name , service := range newProject .AllServices () {
You can’t perform that action at this time.
0 commit comments