Default slack to newest plugin config format

Change-Id: I2685190d08cf8f7b02ffbe5c1b26ec1d3ed40074
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
This commit is contained in:
Thanh Ha 2017-06-28 18:50:52 -04:00
parent f2b01f7c5c
commit ab0b27385d
No known key found for this signature in database
GPG Key ID: B0CB27E00DA095AA
3 changed files with 10 additions and 1 deletions

View File

@ -27,6 +27,7 @@ the build is complete.
import logging
import pkg_resources
import sys
import xml.etree.ElementTree as XML
import six
@ -6480,7 +6481,9 @@ def slack(registry, xml_parent, data):
logger = logging.getLogger(__name__)
plugin_info = registry.get_plugin_info('Slack Notification Plugin')
plugin_ver = pkg_resources.parse_version(plugin_info.get('version', "0"))
# Note: Assume latest version of plugin is preferred config format
plugin_ver = pkg_resources.parse_version(
plugin_info.get('version', str(sys.maxsize)))
mapping = (
('team-domain', 'teamDomain', ''),

View File

@ -0,0 +1,3 @@
- longName: 'Slack Notification Plugin'
shortName: 'slack'
version: "1.0"

View File

@ -0,0 +1,3 @@
- longName: 'Slack Notification Plugin'
shortName: 'slack'
version: "1.0"