Skip to content

Commit

Permalink
Add missing TransientDataDir
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-samfira committed Apr 24, 2020
1 parent d59b863 commit 01dc386
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cloudconfig/instancecfg/instancecfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,10 @@ func NewInstanceConfig(
if err != nil {
return nil, err
}
transientDataDir, err := paths.TransientDataDir(series)
if err != nil {
return nil, err
}
cloudInitOutputLog := path.Join(logDir, "cloud-init-output.log")
icfg := &InstanceConfig{
// Fixed entries.
Expand All @@ -802,6 +806,7 @@ func NewInstanceConfig(
MetricsSpoolDir: metricsSpoolDir,
Jobs: []model.MachineJob{model.JobHostUnits},
CloudInitOutputLog: cloudInitOutputLog,
TransientDataDir: transientDataDir,
MachineAgentServiceName: "jujud-" + names.NewMachineTag(machineID).String(),
Series: series,
Tags: map[string]string{},
Expand Down

0 comments on commit 01dc386

Please sign in to comment.