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:
parent
b079a1a287
commit
f70fe88bc0
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user