Skip to content

Commit

Permalink
process-user-data: Fix the assignment of config filenames
Browse files Browse the repository at this point in the history
The config files were incorrectly assigned resulting in
agent-config.toml not being created.

Signed-off-by: Pradipta Banerjee <[email protected]>
  • Loading branch information
bpradipt committed Jul 23, 2024
1 parent 1eb98e7 commit 39a5288
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cloud-api-adaptor/pkg/userdata/provision.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ type Config struct {
}

func NewConfig(aaConfigPath, agentConfig, authJsonPath, daemonConfigPath, cdhConfig string, fetchTimeout int) *Config {
cfgPaths := paths{aaConfigPath, agentConfig, authJsonPath, cdhConfig, daemonConfigPath}
cfgPaths := paths{aaConfig: aaConfigPath, agentConfig: agentConfig, authJson: authJsonPath,
cdhConfig: cdhConfig, daemonConfig: daemonConfigPath}
return &Config{fetchTimeout, cfgPaths}
}

Expand Down

0 comments on commit 39a5288

Please sign in to comment.