Esempio n. 1
0
 def parse(self, plugins, resource_base):
     if isinstance(self.initial_value, str):
         operation_content = {'mapping': self.initial_value,
                              'parameters': {}}
     else:
         operation_content = self.build_dict_result()
     return operation.process_operation(
         plugins=plugins,
         operation_name=self.name,
         operation_content=operation_content,
         error_code=21,
         partial_error_message='',
         resource_base=resource_base,
         is_workflows=True)
Esempio n. 2
0
 def parse(self, plugins, resource_base):
     if isinstance(self.initial_value, str):
         operation_content = {
             'mapping': self.initial_value,
             'parameters': {}
         }
     else:
         operation_content = self.build_dict_result()
     return operation.process_operation(plugins=plugins,
                                        operation_name=self.name,
                                        operation_content=operation_content,
                                        error_code=21,
                                        partial_error_message='',
                                        resource_base=resource_base,
                                        is_workflows=True)
Esempio n. 3
0
 def parse(self, plugins, resource_base, namespaces_mapping):
     if isinstance(self.initial_value, str):
         operation_content = {'mapping': self.initial_value,
                              'parameters': {}}
         is_cascading = False
     else:
         operation_content = self.build_dict_result()
         is_cascading = self.initial_value.get('is_cascading', False)
     return operation.process_operation(
         plugins=plugins,
         operation_name=self.name,
         operation_content=operation_content,
         error_code=21,
         partial_error_message='',
         resource_bases=resource_base,
         remote_resources_namespaces=namespaces_mapping,
         is_workflows=True,
         is_workflow_cascading=is_cascading)