Add external ID to host output (#1705)

This also fixes a bug if no hosts were returned where the job would run
over and over in a loop, and some other cleanup.
This commit is contained in:
Jeff Mitchell authored and GitHub committed 2021-11-13 17:18:20 -05:00
1 parent 4bf86e6394
commit b3fd23863f
13 files changed
+147 -54

No files matched your search

+1
View File
@@ -28,6 +28,7 @@ type Host struct {
Attributes map[string]interface{} `json:"attributes,omitempty"`
IpAddresses []string `json:"ip_addresses,omitempty"`
DnsNames []string `json:"dns_names,omitempty"`
ExternalId string `json:"external_id,omitempty"`
AuthorizedActions []string `json:"authorized_actions,omitempty"`
response *api.Response