Skip to content

Commit beedccd

Browse files
committed
[apricot] Fix defaults/vars path
1 parent 5d60987 commit beedccd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

apricot/local/service.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (s *Service) NewRunNumber() (runNumber uint32, err error) {
9595
// response: but not all of them! some vars will likely only get parsed at deployment time i.e. right
9696
// before pushing TaskInfos
9797
func (s *Service) GetDefaults() map[string]string {
98-
smap := s.getStringMap(filepath.Join(getConsulRuntimePrefix(),"defaults"))
98+
smap := s.getStringMap(filepath.Join(getAliECSRuntimePrefix(), "defaults"))
9999

100100
// Fill in some global constants we want to make available everywhere
101101
var configUri string
@@ -123,7 +123,7 @@ func (s *Service) GetDefaults() map[string]string {
123123
}
124124

125125
func (s *Service) GetVars() map[string]string {
126-
return s.getStringMap(filepath.Join(getConsulRuntimePrefix(),"vars"))
126+
return s.getStringMap(filepath.Join(getAliECSRuntimePrefix(), "vars"))
127127
}
128128

129129
// Returns a YAML file OR even a structure made of Roles or Nodes with:
@@ -507,9 +507,11 @@ func (s *Service) ImportComponentConfiguration(query *componentcfg.Query, payloa
507507
return
508508
}
509509

510-
511-
512510
func getConsulRuntimePrefix() string {
513511
// FIXME: this should not be hardcoded
514512
return "o2/runtime"
515513
}
514+
515+
func getAliECSRuntimePrefix() string {
516+
return getConsulRuntimePrefix() + "/aliecs"
517+
}

0 commit comments

Comments
 (0)