Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The pkg/reader/node package gets the value of the NODE_NAME environment variable (if the HUBBLE_NODE_NAME is empty). If it is empty, it gets the hostname and uses that. The pkg/watcher package just attempts to get the NODE_NAME environment variable and warns that it will not work as expected if it is empty or missing. This commit changes pkg/watcher so that it uses pkg/reader/node's function instead. Signed-off-by: Kevin Sheldrake <[email protected]>
- Loading branch information