From 519bb325d5543aea4d4953ba3beb66cb224bf08d Mon Sep 17 00:00:00 2001 From: Mykola Marzhan <303592+delgod@users.noreply.github.com> Date: Thu, 1 Jun 2023 10:48:50 +0200 Subject: [PATCH] rollback license relocation (#219) Having a license file in the repository's root directory is industry standard. Rolling back part of the changes of PR #210 --- src/licenses/LICENSE-charm => LICENSE | 0 lib/charms/mongodb/v0/helpers.py | 1 + 2 files changed, 1 insertion(+) rename src/licenses/LICENSE-charm => LICENSE (100%) diff --git a/src/licenses/LICENSE-charm b/LICENSE similarity index 100% rename from src/licenses/LICENSE-charm rename to LICENSE diff --git a/lib/charms/mongodb/v0/helpers.py b/lib/charms/mongodb/v0/helpers.py index f64740a0c..706b10d31 100644 --- a/lib/charms/mongodb/v0/helpers.py +++ b/lib/charms/mongodb/v0/helpers.py @@ -188,6 +188,7 @@ def build_unit_status(mongodb_config: MongoDBConfiguration, unit_ip: str) -> Sta def copy_licenses_to_unit(): """Copies licenses packaged in the snap to the charm's licenses directory.""" + subprocess.check_output("cp LICENSE src/licenses/LICENSE-charm", shell=True) subprocess.check_output( "cp -r /snap/charmed-mongodb/current/licenses/* src/licenses", shell=True )