Skip to content

Commit

Permalink
Return API response instead of 'true'
Browse files Browse the repository at this point in the history
  • Loading branch information
mwadon committed Feb 28, 2018
1 parent 9e9b15d commit 4332a20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Repositories/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function update(Model $model)
*
* @param \Maclof\Kubernetes\Models\Model $model
* @param \Maclof\Kubernetes\Models\DeleteOptions $options
* @return boolean
* @return array
*/
public function delete(Model $model, DeleteOptions $options = null)
{
Expand All @@ -132,13 +132,13 @@ public function delete(Model $model, DeleteOptions $options = null)
*
* @param string $name
* @param \Maclof\Kubernetes\Models\DeleteOptions $options
* @return boolean
* @return array
*/
public function deleteByName($name, DeleteOptions $options = null)
{
$body = $options ? $options->getSchema() : null;
$this->sendRequest('DELETE', '/' . $this->uri . '/' . $name, null, $body, $this->namespace);
return true;

return $this->sendRequest('DELETE', '/' . $this->uri . '/' . $name, null, $body, $this->namespace);
}

/**
Expand Down

0 comments on commit 4332a20

Please sign in to comment.