Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2025 Canonical Ltd.
Copyright 2026 Canonical Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion charmcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.

name: git-ubuntu
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.

[project]
Expand Down
7 changes: 5 additions & 2 deletions src/charm.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.
#
# Learn more at: https://juju.is/docs/sdk
Expand Down Expand Up @@ -456,7 +456,10 @@ def _on_config_changed(self, _: ops.ConfigChangedEvent) -> None:

def _on_leader_elected(self, _: ops.LeaderElectedEvent) -> None:
"""Refresh services and update peer data when the unit is elected as leader."""
if not self._set_peer_primary_node_address():
if self._set_peer_primary_node_address():
self._refresh_importer_node()
self._start_services()
else:
self.unit.status = ops.BlockedStatus(
"Failed to update primary node IP in peer relation."
)
Expand Down
2 changes: 1 addition & 1 deletion src/environment.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.

"""Environment information extraction."""
Expand Down
2 changes: 1 addition & 1 deletion src/git_ubuntu.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.

"""Git Ubuntu service runner and configurator."""
Expand Down
2 changes: 1 addition & 1 deletion src/importer_node.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.

"""Manager of files and git-ubuntu instances on the local system."""
Expand Down
2 changes: 1 addition & 1 deletion src/launchpad.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.

"""Launchpad interaction and tools."""
Expand Down
2 changes: 1 addition & 1 deletion src/package_installation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.

"""Snap and Apt package installation and update functions."""
Expand Down
2 changes: 1 addition & 1 deletion src/service_management.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.

"""Systemd service management functions."""
Expand Down
2 changes: 1 addition & 1 deletion src/user_management.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.

"""Machine user management functions."""
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.


Expand Down
2 changes: 1 addition & 1 deletion tests/integration/helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.


Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_charm.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.


Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_charm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.
#
# Learn more about testing at: https://juju.is/docs/sdk/testing
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_environment.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.
#
# Learn more about testing at: https://juju.is/docs/sdk/testing
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_git_ubuntu.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.
#
# Learn more about testing at: https://juju.is/docs/sdk/testing
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_importer_node.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.
#
# Learn more about testing at: https://juju.is/docs/sdk/testing
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_launchpad.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.
#
# Learn more about testing at: https://juju.is/docs/sdk/testing
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_package_installation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.
#
# Learn more about testing at: https://juju.is/docs/sdk/testing
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_user_management.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.
#
# Learn more about testing at: https://juju.is/docs/sdk/testing
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2025 Canonical Ltd.
# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.

[tox]
Expand Down
Loading