Skip to content

Commit f1ff5cc

Browse files
committed
Fix log location
1 parent b837aac commit f1ff5cc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

provisioner/terraform/resources.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ type agentScriptAttributes struct {
8383
Icon string `mapstructure:"icon"`
8484
Script string `mapstructure:"script"`
8585
Cron string `mapstructure:"cron"`
86+
LogPath string `mapstructure:"log_path"`
8687
StartBlocksLogin bool `mapstructure:"start_blocks_login"`
8788
RunOnStart bool `mapstructure:"run_on_start"`
8889
RunOnStop bool `mapstructure:"run_on_stop"`
@@ -456,6 +457,7 @@ func ConvertState(modules []*tfjson.StateModule, rawGraph string) (*State, error
456457
Icon: attrs.Icon,
457458
Script: attrs.Script,
458459
Cron: attrs.Cron,
460+
LogPath: attrs.LogPath,
459461
StartBlocksLogin: attrs.StartBlocksLogin,
460462
RunOnStart: attrs.RunOnStart,
461463
RunOnStop: attrs.RunOnStop,

site/src/components/Resources/AgentRow.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,10 @@ export const AgentRow: FC<AgentRowProps> = ({
299299
const log = startupLogs[index];
300300
let sourceIcon: string | undefined =
301301
logSourceByID[log.source_id].icon;
302+
if (!sourceIcon) {
303+
// Default to a globe for external.
304+
sourceIcon = "/emojis/1f310.png";
305+
}
302306
if (
303307
index > 0 &&
304308
logSourceByID[startupLogs[index - 1].source_id].id ===

0 commit comments

Comments
 (0)