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
This commit is contained in:
David Moreau Simard 2018-12-14 12:28:06 -05:00
parent 1c571dbd54
commit 6597aff444
No known key found for this signature in database
GPG Key ID: CBEB466764A9E621

View File

@ -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):