Skip to content

Commit

Permalink
Do not reference artifact name when not necessary
Browse files Browse the repository at this point in the history
This commit allows for interrogation artifact to be overriden without
errors.
  • Loading branch information
misje committed Nov 9, 2024
1 parent 67042dc commit b08af75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions artifacts/definitions/Generic/Client/Info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ sources:
`Computer Info`.DomainRole AS DomainRole
FROM source(client_id=client_id,
flow_id=last_interrogate_flow_id,
artifact="Generic.Client.Info/WindowsInfo")
source="WindowsInfo")
})
-- WHERE DomainRole =~ "Controller"
Expand Down Expand Up @@ -141,7 +141,7 @@ reports:
{{ define "computerinfo" }}
LET X <= SELECT *
FROM source(artifact='Generic.Client.Info/LinuxInfo')
FROM source(source="LinuxInfo')
LIMIT 1
SELECT humanize(bytes=TotalPhysicalMemory) AS TotalPhysicalMemory,
Expand All @@ -162,8 +162,8 @@ reports:
{{ $windows_info | Table }}
{{ end }}
{{ $linux_info := Query "LET X <= SELECT * FROM source(artifact='Generic.Client.Info/LinuxInfo') LIMIT 1 SELECT * FROM X" }}
{{ if Query "SELECT * FROM source(artifact='Generic.Client.Info/LinuxInfo')" | Expand }}
{{ $linux_info := Query "LET X <= SELECT * FROM source(source='LinuxInfo') LIMIT 1 SELECT * FROM X" }}
{{ if Query "SELECT * FROM source(source='LinuxInfo')" | Expand }}
# Linux agent information
### Network Info
Expand Down

0 comments on commit b08af75

Please sign in to comment.