ariatosca-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AviaE <...@git.apache.org>
Subject [GitHub] incubator-ariatosca pull request #189: ARIA-174 Refactor instantiation phase
Date Tue, 01 Aug 2017 22:30:04 GMT
Github user AviaE commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130585942
  
    --- Diff: aria/core.py ---
    @@ -67,31 +68,25 @@ def delete_service_template(self, service_template_id):
             self.resource_storage.service_template.delete(entry_id=str(service_template.id))
     
         def create_service(self, service_template_id, inputs, service_name=None):
    -
             service_template = self.model_storage.service_template.get(service_template_id)
     
    -        # creating an empty ConsumptionContext, initiating a threadlocal context
    -        context = consumption.ConsumptionContext()
    -
             storage_session = self.model_storage._all_api_kwargs['session']
             # setting no autoflush for the duration of instantiation - this helps avoid dependency
             # constraints as they're being set up
             with storage_session.no_autoflush:
    -            service = service_template.instantiate(None, self.model_storage, inputs=inputs)
    -
    -            consumption.ConsumerChain(
    -                context,
    -                (
    -                    consumption.CoerceServiceInstanceValues,
    --- End diff --
    
    If some of these consumers are not used anymore, add a comment explaining that, or consider
removing them.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message