Skip to content

Commit

Permalink
fix typos in client api usage (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
edaniszewski authored Jul 10, 2019
1 parent 7cf30af commit 51d0126
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kubetest/objects/statefulset.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,15 @@ def delete(self, options):
log.debug('delete options: %s', options)
log.debug('statefulset: %s', self.obj)

return self.api_client.delete_namespaced_statefulset(
return self.api_client.delete_namespaced_stateful_set(
name=self.name,
namespace=self.namespace,
body=options,
)

def refresh(self):
"""Refresh the underlying Kubernetes StatefulSet resource."""
self.obj = self.api_client.read_namespaced_statefulset_status(
self.obj = self.api_client.read_namespaced_stateful_set_status(
name=self.name,
namespace=self.namespace,
)
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ deps=
autopep8
commands=
isort --recursive --atomic {posargs:kubetest tests}
autopep8 --recursive --in-place {toxinidir}
autopep8 --recursive --in-place --exclude=conf.py {toxinidir}
[testenv:lint]
Expand Down

0 comments on commit 51d0126

Please sign in to comment.