From 1b63cc3888504025a33e7748ad518e1642849ab2 Mon Sep 17 00:00:00 2001 From: phala Date: Wed, 26 Oct 2022 11:29:36 +0200 Subject: [PATCH] Fix typo in OpenShiftObject.committed --- testsuite/openshift/objects/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testsuite/openshift/objects/__init__.py b/testsuite/openshift/objects/__init__.py index 6fee4861..f741a748 100644 --- a/testsuite/openshift/objects/__init__.py +++ b/testsuite/openshift/objects/__init__.py @@ -18,7 +18,7 @@ def _func(self): @functools.wraps(func) def _wrap(self, *args, **kwargs): - if self.commited: + if self.committed: result, _ = self.modify_and_apply(_custom_partial(func, *args, **kwargs)) assert result.status else: @@ -31,7 +31,7 @@ class OpenShiftObject(APIObject): """Custom APIObjects which tracks if the object was already committed to the server or not""" def __init__(self, dict_to_model=None, string_to_model=None, context=None): super().__init__(dict_to_model, string_to_model, context) - self.commited = False + self.committed = False def commit(self): """ @@ -39,7 +39,7 @@ def commit(self): It will be the same class but attributes might differ, due to server adding/rejecting some of them. """ self.create(["--save-config=true"]) - self.commited = True + self.committed = True return self.refresh() def delete(self, ignore_not_found=True, cmd_args=None):