Skip to content

Commit

Permalink
Add the missing return
Browse files Browse the repository at this point in the history
Signed-off-by: gatici <gulsum.atici@canonical.com>
  • Loading branch information
gatici committed Jul 11, 2024
1 parent f1b9f54 commit 8d91ba8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/upf_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def bring_up_interface(self) -> None:
interfaces = self.network_db.interfaces # type: ignore[reportAttributeAccessIssue]
if iface_record := interfaces.get(self.name):
iface_record.set(state="up").commit()
return
logger.warning(
"Setting the interface state to up is failed: Interface %s not found in the network database", # noqa: E501
self.name,
Expand Down

0 comments on commit 8d91ba8

Please sign in to comment.