Skip to content

Commit

Permalink
Fixed parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Mar 23, 2021
1 parent f10838b commit a45d61d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/KubernetesCluster.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function __call($method, $parameters)
if (method_exists(K8s::class, $resource)) {
return $this->{$resource}()
->whereNamespace($parameters[1] ?? K8sResource::$defaultNamespace)
->getByName($parameters[0], $parameters[1] ?? ['pretty' => 1]);
->getByName($parameters[0], $parameters[2] ?? ['pretty' => 1]);
}
}

Expand Down

0 comments on commit a45d61d

Please sign in to comment.