You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by GitBox <gi...@apache.org> on 2019/07/09 00:18:41 UTC

[GitHub] [incubator-heron] xiaoyao1991 commented on a change in pull request #3310: Allow interpolate more spout config parameters in extra links

xiaoyao1991 commented on a change in pull request #3310: Allow interpolate more spout config parameters in extra links
URL: https://github.com/apache/incubator-heron/pull/3310#discussion_r301351723
 
 

 ##########
 File path: heron/tools/tracker/src/python/config.py
 ##########
 @@ -54,7 +57,7 @@ def load_configs(self):
 
     if SPOUT_EXTRA_LINKS_KEY in self.configs:
       for extra_link in self.configs[SPOUT_EXTRA_LINKS_KEY]:
-        self.spout_extra_links[extra_link[SPOUT_TYPE_KEY]] = [self.validate_extra_link(link) for link in extra_link[EXTRA_LINKS_KEY]]
+        self.spout_extra_links[extra_link[SPOUT_TYPE_KEY]] = extra_link[EXTRA_LINKS_KEY]
 
 Review comment:
   The way we were doing validation worked for extra links with only pre-defined params, but it's hard to pre-define all possible params beforehand. In addition, different spout types could have different sets of params. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services