Skip to content

Commit

Permalink
Merge pull request #107 from leo108/patch-1
Browse files Browse the repository at this point in the history
Should refresh the origin before checking changes
  • Loading branch information
rennokki authored Jul 7, 2021
2 parents b0ccb57 + 52afe6d commit 96e303f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/RunsClusterOperations.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@ public function create(array $query = ['pretty' => 1])
*/
public function update(array $query = ['pretty' => 1]): bool
{
$this->refreshOriginal();

// If it didn't change, no way to trigger the change.
if (! $this->hasChanged()) {
return true;
}

$this->refreshOriginal();

$instance = $this->cluster
->setResourceClass(get_class($this))
->runOperation(
Expand Down

0 comments on commit 96e303f

Please sign in to comment.