diff --git a/ocp_resources/resource.py b/ocp_resources/resource.py index 49cff1fd70..c81687cfd9 100644 --- a/ocp_resources/resource.py +++ b/ocp_resources/resource.py @@ -733,7 +733,7 @@ def create(self, wait=False): resource_ = self.api.create( body=self.res, namespace=self.namespace, dry_run=self.dry_run ) - with contextlib.suppress(TimeoutExpiredError): + with contextlib.suppress(TimeoutExpiredError, AttributeError): # some resources do not support get() (no instance) or the client do not have permissions self.initial_resource_version = self.instance.metadata.resourceVersion