Skip to content

Commit

Permalink
Merge pull request #5394 from champtar/nm-connected
Browse files Browse the repository at this point in the history
Fix network spokes connectivity check
  • Loading branch information
rvykydal authored Jan 24, 2024
2 parents d79e67f + 16dde60 commit 7a554d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyanaconda/ui/gui/spokes/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,7 @@ def completed(self):
# TODO: check also if source requires updates when implemented
# If we can't configure network, don't require it
return (not conf.system.can_configure_network
or self._network_module.GetActivatedInterfaces())
or self._network_module.Connected)

@property
def mandatory(self):
Expand Down Expand Up @@ -1691,7 +1691,7 @@ def apply(self):
@property
def completed(self):
return (not conf.system.can_configure_network
or self._network_module.GetActivatedInterfaces()
or self._network_module.Connected
or not (self.payload.source_type != conf.payload.default_source
and self.payload.needs_network))

Expand Down
2 changes: 1 addition & 1 deletion pyanaconda/ui/tui/spokes/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def completed(self):
""" Check whether this spoke is complete or not."""
# If we can't configure network, don't require it
return (not conf.system.can_configure_network
or self._network_module.GetActivatedInterfaces())
or self._network_module.Connected)

@property
def mandatory(self):
Expand Down

0 comments on commit 7a554d0

Please sign in to comment.