Juan Hernandez has uploaded a new change for review. Change subject: sdk: Ignore errors when cleaning old connection ......................................................................
sdk: 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 Signed-off-by: Juan Hernandez <[email protected]> --- M src/codegen/templates/entrypointtemplate 1 file changed, 4 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk refs/changes/84/29684/1 diff --git a/src/codegen/templates/entrypointtemplate b/src/codegen/templates/entrypointtemplate index 5c9dd18..4c10c24 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 Exception: + pass # Remove trailing slashes from the URL: url = url.rstrip('/') -- To view, visit http://gerrit.ovirt.org/29684 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: master Gerrit-Owner: Juan Hernandez <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
