mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-25 20:03:49 +00:00
Fail when trying to down a non-existing NM profile
This commit is contained in:
parent
756be9a8de
commit
459601c8e7
1 changed files with 3 additions and 2 deletions
|
|
@ -2661,9 +2661,10 @@ class Cmd_nm(Cmd):
|
|||
self.log_error(idx, 'down connection failed while waiting: %s' % (e))
|
||||
|
||||
cons = self.nmutil.connection_list(name = connection['name'])
|
||||
|
||||
if not changed:
|
||||
self.log_info(idx, 'down connection %s failed: no connection' % (connection['name']))
|
||||
self.log_error(idx,
|
||||
'down connection %s failed: connection not found' %
|
||||
(connection['name']))
|
||||
|
||||
|
||||
###############################################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue