Fail when trying to down a non-existing NM profile

This commit is contained in:
Till Maas 2018-07-11 10:06:45 +02:00
parent 756be9a8de
commit 459601c8e7

View file

@ -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']))
###############################################################################