Use stable approach to seek YAML fields in bin/update_hosts.sh script #72

Open
opened 2025-12-28 18:08:21 +00:00 by sami · 0 comments
Owner

Originally created by @cthulhu-rider on GitHub (Dec 20, 2023).

* originally posted in https://github.com/nspcc-dev/neofs-dev-env/pull/282#discussion_r1431840847

currently, script uses grep to seek YAML fields. Fields may have the same names in different YAML sections, so current approach may be unstable. Another approach dealing with full path should be used instead

Originally created by @cthulhu-rider on GitHub (Dec 20, 2023). _* originally posted in https://github.com/nspcc-dev/neofs-dev-env/pull/282#discussion_r1431840847_ currently, [script](https://github.com/nspcc-dev/neofs-dev-env/blob/master/bin/update_hosts.sh) uses `grep` to seek YAML fields. Fields may have the same names in different YAML sections, so current approach may be unstable. Another approach dealing with full path should be used instead
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-dev-env#72
No description provided.