From 6597aff444dfe68609be87120ecb32453d65aeb7 Mon Sep 17 00:00:00 2001 From: David Moreau Simard Date: Fri, 14 Dec 2018 12:28:06 -0500 Subject: [PATCH] Use 'ara-clients' instead of __name__ when determining client version This resolves an exception by pbr when Ansible attempts to load the client: """ Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name ara.clients.http was given, but was not able to be found. """ Change-Id: Id56bf0909d17259313307d433a6104fe02e0215e --- ara/clients/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ara/clients/http.py b/ara/clients/http.py index bdfb247..aacd3b7 100644 --- a/ara/clients/http.py +++ b/ara/clients/http.py @@ -24,7 +24,7 @@ import logging import pbr.version import requests -CLIENT_VERSION = pbr.version.VersionInfo(__name__).release_string() +CLIENT_VERSION = pbr.version.VersionInfo("ara-clients").release_string() class HttpClient(object):