Skip to content

Commit

Permalink
Fix invalid job JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Sep 29, 2020
1 parent 5554c41 commit a0f3821
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/TaskOperation/Composer/CloudOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ private function getCurrentJob(): ?CloudJob
}

try {
if ($content = $this->taskConfig->getState('cloud-job-status')) {
$this->job = new CloudJob(JsonFile::parseJson($content));
if (\is_array($content = $this->taskConfig->getState('cloud-job-status'))) {
$this->job = new CloudJob($content);

if (null !== $this->taskConfig->getState('cloud-job-successful')) {
$this->output = $this->taskConfig->getState('cloud-job-output');
Expand Down

0 comments on commit a0f3821

Please sign in to comment.