Juan Hernandez has uploaded a new change for review. Change subject: codegen: Ignore errors when cleaning old connection ......................................................................
codegen: Ignore errors when cleaning old connection The constructor of the API object tries to clean connections left around by the user, calling their "disconnect" method. If this fails the creation of the new API object fails as well. To avoid that this patch changes the SDK so that any error during that cleaup is ignored. Change-Id: Id2a5c690aa9336bc0b441ca57100b9d6cd09e335 Bug-Url: https://bugzilla.redhat.com/1116009 Signed-off-by: Juan Hernandez <[email protected]> (cherry picked from commit 3b6ed1ed646eb57eadacc59e0e66cfa56d4547b2) --- M src/codegen/templates/entrypointtemplate 1 file changed, 4 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk refs/changes/07/29707/1 diff --git a/src/codegen/templates/entrypointtemplate b/src/codegen/templates/entrypointtemplate index 5c9dd18..fa765aa 100644 --- a/src/codegen/templates/entrypointtemplate +++ b/src/codegen/templates/entrypointtemplate @@ -37,7 +37,10 @@ # when detected instance of the SDK proxy with # ref-count == 0 if context.manager.has_key(self.__id): - self.disconnect() + try: + self.disconnect() + except DisconnectedError: + pass # Remove trailing slashes from the URL: url = url.rstrip('/') -- To view, visit http://gerrit.ovirt.org/29707 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id2a5c690aa9336bc0b441ca57100b9d6cd09e335 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine-sdk Gerrit-Branch: sdk_3.5 Gerrit-Owner: Juan Hernandez <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
