nm: Fix ActiveConnection.is_activating

The `ActiveConnection.is_activating` is overlapping
with `ActiveConnection.is_active` when master interface
in IP_CONFIG mode, overlap removed by this patch.

Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
Gris Ge 2019-11-19 22:17:11 +08:00
parent b079a1a287
commit f70fe88bc0

View File

@ -142,7 +142,10 @@ class ActiveConnection(object):
@property
def is_activating(self):
return self.state == nmclient.NM.ActiveConnectionState.ACTIVATING
return (
self.state == nmclient.NM.ActiveConnectionState.ACTIVATING
and not self.is_active
)
@property
def reason(self):