Default slack to newest plugin config format
Change-Id: I2685190d08cf8f7b02ffbe5c1b26ec1d3ed40074 Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
This commit is contained in:
parent
f2b01f7c5c
commit
ab0b27385d
|
@ -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', ''),
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
- longName: 'Slack Notification Plugin'
|
||||
shortName: 'slack'
|
||||
version: "1.0"
|
|
@ -0,0 +1,3 @@
|
|||
- longName: 'Slack Notification Plugin'
|
||||
shortName: 'slack'
|
||||
version: "1.0"
|
Loading…
Reference in New Issue