launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #27528
[Merge] ~cjwatson/rutabaga:charm-fix-swift-payload-series into rutabaga:master
Colin Watson has proposed merging ~cjwatson/rutabaga:charm-fix-swift-payload-series into rutabaga:master.
Commit message:
Fix series detection when installing payload from Swift
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~cjwatson/rutabaga/+git/rutabaga/+merge/408877
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/rutabaga:charm-fix-swift-payload-series into rutabaga:master.
diff --git a/charm/rutabaga/lib/charms/rutabaga.py b/charm/rutabaga/lib/charms/rutabaga.py
index 6c175b7..ab67a3d 100644
--- a/charm/rutabaga/lib/charms/rutabaga.py
+++ b/charm/rutabaga/lib/charms/rutabaga.py
@@ -178,7 +178,7 @@ def install_payload():
if config['swift_container_name']:
swift_creds = get_swift_creds(config)
swift_container = config['swift_container_name']
- series = host.lsb_release['DISTRIB_CODENAME']
+ series = host.lsb_release()['DISTRIB_CODENAME']
swift_fetch(
os.path.join('rutabaga-builds-{}'.format(series), object_name),
archive_path, container=swift_container, **swift_creds)