]> ruderich.org/simon Gitweb - safcm/safcm.git/commit
changes: display "no changes" when nothing was changed
authorSimon Ruderich <simon@ruderich.org>
Sun, 25 Apr 2021 07:57:37 +0000 (09:57 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 25 Apr 2021 07:57:37 +0000 (09:57 +0200)
commit367edc1286a52d96fcfef6f98330148cad8a64e1
tree66d3e1ec4b31ef604f607fb9f90ad23b57d6d7c8
parent06e94a0f798e8c3e231ebe01ae85ec1337505ac8
changes: display "no changes" when nothing was changed

It's confusing to show nothing at all when no changes occur on a host.
To inform the user that the sync was successful but nothing changed
display a short message.
cmd/safcm/main_sync_test.go
cmd/safcm/sync_changes.go
cmd/safcm/sync_changes_test.go