-
Notifications
You must be signed in to change notification settings - Fork 128
[QUAD] Deadline: Improve get_publish_plugin_paths to properly get paths for the specified host #6313
Conversation
…the specified host
all_plugin_paths = {} | ||
|
||
for valid_plugin_type in self._valid_plugin_types: | ||
all_plugin_paths[valid_plugin_type] = self.plugin_paths[valid_plugin_type]['all'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (93 > 79 characters)
if host in self.plugin_paths[valid_plugin_type]: | ||
self.plugin_paths[valid_plugin_type][host].append(plugin_path_resolved) | ||
else: | ||
self.plugin_paths[valid_plugin_type][host] = [plugin_path_resolved] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (95 > 79 characters)
# Adding the plugin path to the correct host array(s) | ||
for host in hosts_list: | ||
if host in self.plugin_paths[valid_plugin_type]: | ||
self.plugin_paths[valid_plugin_type][host].append(plugin_path_resolved) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (99 > 79 characters)
hosts_list = ast.literal_eval(hosts_str) | ||
|
||
# Adding the plugin path to the "all" array | ||
self.plugin_paths[valid_plugin_type]['all'].append(plugin_path_resolved) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (92 > 79 characters)
# The regex didn't match, maybe an __init__.py file | ||
continue | ||
|
||
hosts_str = re.sub(r'\s+', '', match.group(match.lastgroup)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (80 > 79 characters)
I suppose this is to register only the plug-ins for a particular host. This has been solved in |
Changelog Description
Paragraphs contain detailed information on the changes made to the product or service, providing an in-depth description of the updates and enhancements. They can be used to explain the reasoning behind the changes, or to highlight the importance of the new features. Paragraphs can often include links to further information or support documentation.
Additional info
Paragraphs of text giving context of additional technical information or code examples.
Testing notes: