[
https://issues.apache.org/jira/browse/ARIA-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15969365#comment-15969365
]
ASF GitHub Bot commented on ARIA-92:
------------------------------------
Github user ran-z commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/95#discussion_r111616080
--- Diff: aria/modeling/service_template.py ---
@@ -2077,27 +2091,39 @@ def service_template_fk(cls):
"""For ServiceTemplate one-to-many to PluginSpecification"""
return relationship.foreign_key('service_template', nullable=True)
+ @declared_attr
+ def plugin_fk(cls):
+ """For PluginSpecification many-to-one to Plugin"""
+ return relationship.foreign_key('plugin', nullable=True)
+
# endregion
+ # region many_to_one relationships
+
@declared_attr
def service_template(cls):
return relationship.many_to_one(cls, 'service_template')
+ @declared_attr
+ def plugin(cls): # pylint: disable=method-hidden
+ return relationship.many_to_one(cls, 'plugin',
back_populates=relationship.NO_BACK_POP)
+
+ # endregion
+
@property
def as_raw(self):
return collections.OrderedDict((
('name', self.name),
- ('version', self.version)))
+ ('version', self.version),
+ ('enabled', self.enabled)))
def coerce_values(self, container, report_issues):
pass
def instantiate(self, container):
- from . import models
--- End diff --
wait, so instantiate is now empty? :confused:
> Execution plugin operations default mappings
> --------------------------------------------
>
> Key: ARIA-92
> URL: https://issues.apache.org/jira/browse/ARIA-92
> Project: AriaTosca
> Issue Type: Story
> Reporter: Ran Ziv
> Assignee: Tal Liron
>
> The execution plugin serves as the default plugin, i.e. if no other plugin
> was specified, it'll be used to execute scripts in operations.
> These scripts will currently only execute locally. The execution plugin also
> supports running scripts on remote machines (via SSH).
> One option is to have the parser recognize whether the node in question is
> contained inside a host node, in which case the script should be executed
> remotely (by default, yet overridable by specifying the full plugin operation
> mapping), and if not then it should be executed locally.
> Another option is to have the user specify it using special syntax, e.g.:
> "local > script.sh" and "remote > script.sh"
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)