Пример #1
0
 def download_resource(self,
                       blueprint_id,
                       deployment_id,
                       resource_path,
                       logger,
                       target_path=None,
                       template_variables=None):
     resource = manager.download_resource(blueprint_id=blueprint_id,
                                          deployment_id=deployment_id,
                                          tenant_name=self.ctx.tenant_name,
                                          resource_path=resource_path,
                                          logger=logger,
                                          target_path=target_path)
     return self._render_resource_if_needed(
         resource=resource,
         template_variables=template_variables,
         download=True)
 def download_resource(self,
                       blueprint_id,
                       deployment_id,
                       resource_path,
                       logger,
                       target_path=None,
                       template_variables=None):
     resource = manager.download_resource(
         blueprint_id=blueprint_id,
         deployment_id=deployment_id,
         resource_path=resource_path,
         logger=logger,
         target_path=target_path)
     return self._render_resource_if_needed(
         resource=resource,
         template_variables=template_variables,
         download=True)