processed_result = []
- if self._is_complete:
- raw_result = self.pb_execution.get_result(self.event_filter)
-
- if self.process_output:
- processed_result = self.process_output(
- raw_result,
- self.ar_client,
- self.pb_execution.play_uuid)
- else:
- processed_result = raw_result
+ raw_result = self.pb_execution.get_result(self.event_filter)
+
+ if self.process_output:
+ processed_result = self.process_output(
+ raw_result,
+ self.ar_client,
+ self.pb_execution.play_uuid)
+ else:
+ processed_result = raw_result
+
+ #Clean objects to avoid problems between interpreters
+ self.pb_execution = None
+ self.ar_client = None
self._result = processed_result
self.wait([host_completion])
all_hosts = [h.name for h in host_completion.result]
- completion = self.create_osds(spec, all_hosts)
- self._orchestrator_wait([completion])
- #return result
- return HandleCommandResult(stdout=completion.result)
+ try:
+ json_dg = json.loads(params)
+ except ValueError as msg:
+ return HandleCommandResult(-errno.EINVAL, stderr=msg)
def _add_stateless_svc(self, svc_type, spec):
completion = self.add_stateless_service(svc_type, spec)