Avoid hardcoding version numbers in the settings

The version number can be extracted from the package's filename.

Change-Id: I0fd3cf86a3a299898027b5e6be07c6ec47e0271c
This commit is contained in:
Simon Pasquier
2016-05-12 17:11:47 +02:00
parent 11067ea33f
commit fe47baae9b
5 changed files with 27 additions and 4 deletions

View File

@@ -12,11 +12,12 @@
# License for the specific language governing permissions and limitations
# under the License.
from stacklight_tests.helpers import helpers
from stacklight_tests import settings
name = 'elasticsearch_kibana'
version = '0.9.0'
role_name = ['elasticsearch_kibana']
vip_name = 'es_vip_mgmt'
plugin_path = settings.ELASTICSEARCH_KIBANA_PLUGIN_PATH
version = helpers.get_plugin_version(plugin_path)