Skip to content

nmcli: don't warn version mismatch with daemon not running

Íñigo Huguet requested to merge ih/nmcli_warn_check_running into main

Summary

Don't warn version mismatch with daemon not running

Purpose

Commit fb851f32 added a warning message in the case that nmcli and daemon's version don't match. However, it's printed also if the daemon is not running, which is missleading. As in that case the message "Error: NetworkManager is not running." is shown, that's the only message that we need to show.

Checklist

Please read https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/CONTRIBUTING.md before opening the merge request. In particular, check that:

  • the subject for all commits is concise and explicative
  • the message for all commits explains the reason for the change
  • the source is properly formatted
  • any relevant documentation is up to date
  • you have added unit tests if applicable

Merge request reports