From 9ee3790662c8356d6319d6212bc5b26cecaebb92 Mon Sep 17 00:00:00 2001 From: Alexander Tivelkov Date: Fri, 27 Nov 2015 12:59:13 +0300 Subject: [PATCH] Fixed an incorrect call to the artifacts client The artifacts client was called incorrectly in the "toggle public" call routine, leading to an exception when changing the visibility of package if using Glare. This has been fixed. Change-Id: Ic3da93bde00d96909cae106c358bf4a7d64d19a8 Closes-Bug: #1501374 --- muranoclient/v1/artifact_packages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/muranoclient/v1/artifact_packages.py b/muranoclient/v1/artifact_packages.py index 447020b8..3ef9bcec 100644 --- a/muranoclient/v1/artifact_packages.py +++ b/muranoclient/v1/artifact_packages.py @@ -153,7 +153,7 @@ class ArtifactRepo(object): new_props['keywords'] = new_keywords visibility = new_props.get('visibility') if visibility == 'public': - package = self.client.get(app_id) + package = self.client.artifacts.get(app_id) # NOTE(ativelkov): this is very racy, but until we have a chance to # enforce uniqueness right in glance this is the only way to do it existing = self.list(name=package.name,