)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"c2b99e799d66f817c47bd0f1cfb34c3b9fd0102b","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2014-08-12 17:03:40 +0300"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Refactor secret_store for cosistency"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Mostly re-arranged the code a bit, so that for...else... statements are"},{"line_number":10,"context_line":"used in a more consistent way."},{"line_number":11,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"baada198_b8a0e391","line":8,"updated":"2014-08-12 14:26:19.000000000","message":"consistency :)","commit_id":"de2dc7ecb2a26b87e53204ec337a1c27a62bf584"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"6bdd48a88d573064bfc0f973c202490c854dcf8a","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2014-08-12 17:03:40 +0300"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Refactor secret_store for cosistency"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Mostly re-arranged the code a bit, so that for...else... statements are"},{"line_number":10,"context_line":"used in a more consistent way."},{"line_number":11,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"baada198_e52d5391","line":8,"in_reply_to":"baada198_b8a0e391","updated":"2014-08-12 15:00:25.000000000","message":"darn, you beat me to it!","commit_id":"de2dc7ecb2a26b87e53204ec337a1c27a62bf584"}],"barbican/plugin/interface/secret_store.py":[{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"bf24aaaf3a2434f00f38ec3eda774b7edd530674","unresolved":false,"context_lines":[{"line_number":418,"context_line":"        \"\"\""},{"line_number":419,"context_line":""},{"line_number":420,"context_line":"        if len(self.extensions) \u003c 1:"},{"line_number":421,"context_line":"            raise SecretStorePluginNotFound()"},{"line_number":422,"context_line":""},{"line_number":423,"context_line":"        if plugin_name is not None:"},{"line_number":424,"context_line":"            for ext in self.extensions:"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_18e62f13","line":421,"updated":"2014-08-12 14:25:42.000000000","message":"I also think we should remove the above lines 420-421 and 466-467.  They are not needed.","commit_id":"de2dc7ecb2a26b87e53204ec337a1c27a62bf584"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"a70e940b0dab68c6e2089cd913f91a629fa588f9","unresolved":false,"context_lines":[{"line_number":418,"context_line":"        \"\"\""},{"line_number":419,"context_line":""},{"line_number":420,"context_line":"        if len(self.extensions) \u003c 1:"},{"line_number":421,"context_line":"            raise SecretStorePluginNotFound()"},{"line_number":422,"context_line":""},{"line_number":423,"context_line":"        if plugin_name is not None:"},{"line_number":424,"context_line":"            for ext in self.extensions:"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_58198785","line":421,"in_reply_to":"baada198_18e62f13","updated":"2014-08-12 14:50:59.000000000","message":"I actually thought this was useful to keep in when I was debugging KMIP -- I was getting this exception and was able to figure out that the SecretStore was not recognizing the plugin at all (and I needed to change config settings), and saved me time trying to figure out if I was passing invalid arguments, etc.","commit_id":"de2dc7ecb2a26b87e53204ec337a1c27a62bf584"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"7a21b37d799192e0a07360cbdbe82efe33f4222a","unresolved":false,"context_lines":[{"line_number":418,"context_line":"        \"\"\""},{"line_number":419,"context_line":""},{"line_number":420,"context_line":"        if len(self.extensions) \u003c 1:"},{"line_number":421,"context_line":"            raise SecretStorePluginNotFound()"},{"line_number":422,"context_line":""},{"line_number":423,"context_line":"        if plugin_name is not None:"},{"line_number":424,"context_line":"            for ext in self.extensions:"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_c5812fa1","line":421,"in_reply_to":"baada198_58198785","updated":"2014-08-12 15:05:44.000000000","message":"If it makes sense to help diagnose mis-configurations, then perhaps we should change the exception type to \nSecretStorePluginsNotConfigured() and have a corresponding error message:  No secret store plugins have been configured.","commit_id":"de2dc7ecb2a26b87e53204ec337a1c27a62bf584"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"6bdd48a88d573064bfc0f973c202490c854dcf8a","unresolved":false,"context_lines":[{"line_number":418,"context_line":"        \"\"\""},{"line_number":419,"context_line":""},{"line_number":420,"context_line":"        if len(self.extensions) \u003c 1:"},{"line_number":421,"context_line":"            raise SecretStorePluginNotFound()"},{"line_number":422,"context_line":""},{"line_number":423,"context_line":"        if plugin_name is not None:"},{"line_number":424,"context_line":"            for ext in self.extensions:"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_c5df6f36","line":421,"in_reply_to":"baada198_58198785","updated":"2014-08-12 15:00:25.000000000","message":"Would replacing this with LOG() help?  Or maybe a decorator?  Not a fan of duplicated code (ie the same if stmt).  Repeated code makes me cry.","commit_id":"de2dc7ecb2a26b87e53204ec337a1c27a62bf584"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"bf24aaaf3a2434f00f38ec3eda774b7edd530674","unresolved":false,"context_lines":[{"line_number":426,"context_line":"                    return ext.obj"},{"line_number":427,"context_line":"            else:"},{"line_number":428,"context_line":"                raise SecretStoreSupportedPluginNotFound()"},{"line_number":429,"context_line":""},{"line_number":430,"context_line":"        if not transport_key_needed:"},{"line_number":431,"context_line":"            for ext in self.extensions:"},{"line_number":432,"context_line":"                if ext.obj.store_secret_supports(key_spec):"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_f8e09b28","line":429,"updated":"2014-08-12 14:25:42.000000000","message":"The else clause here is not needed.  Actually, I think we should refactor the other methods get_plugin_generate() to follow the method here.\n\nI also think that the exception that should be thrown here is SecretStorePluginNotFound()  because we are looking for a specific plugin.","commit_id":"de2dc7ecb2a26b87e53204ec337a1c27a62bf584"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"bf24aaaf3a2434f00f38ec3eda774b7edd530674","unresolved":false,"context_lines":[{"line_number":453,"context_line":"            if utils.generate_fullname_for(ext.obj) \u003d\u003d plugin_name:"},{"line_number":454,"context_line":"                return ext.obj"},{"line_number":455,"context_line":"        else:"},{"line_number":456,"context_line":"            raise SecretStoreSupportedPluginNotFound()"},{"line_number":457,"context_line":""},{"line_number":458,"context_line":"    def get_plugin_generate(self, key_spec):"},{"line_number":459,"context_line":"        \"\"\"Gets a secret generate plugin."}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_78a56bb2","line":456,"updated":"2014-08-12 14:25:42.000000000","message":"I think we should remove the else: clause here too.","commit_id":"de2dc7ecb2a26b87e53204ec337a1c27a62bf584"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"3d522f8c55b429153197414ef3f1240269f34b40","unresolved":false,"context_lines":[{"line_number":453,"context_line":"            if utils.generate_fullname_for(ext.obj) \u003d\u003d plugin_name:"},{"line_number":454,"context_line":"                return ext.obj"},{"line_number":455,"context_line":"        else:"},{"line_number":456,"context_line":"            raise SecretStoreSupportedPluginNotFound()"},{"line_number":457,"context_line":""},{"line_number":458,"context_line":"    def get_plugin_generate(self, key_spec):"},{"line_number":459,"context_line":"        \"\"\"Gets a secret generate plugin."}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_c86066d2","line":456,"in_reply_to":"baada198_25ce6bb7","updated":"2014-08-12 15:22:25.000000000","message":"yes, just the else.","commit_id":"de2dc7ecb2a26b87e53204ec337a1c27a62bf584"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"7a21b37d799192e0a07360cbdbe82efe33f4222a","unresolved":false,"context_lines":[{"line_number":453,"context_line":"            if utils.generate_fullname_for(ext.obj) \u003d\u003d plugin_name:"},{"line_number":454,"context_line":"                return ext.obj"},{"line_number":455,"context_line":"        else:"},{"line_number":456,"context_line":"            raise SecretStoreSupportedPluginNotFound()"},{"line_number":457,"context_line":""},{"line_number":458,"context_line":"    def get_plugin_generate(self, key_spec):"},{"line_number":459,"context_line":"        \"\"\"Gets a secret generate plugin."}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_454b5f85","line":456,"in_reply_to":"baada198_25e74b47","updated":"2014-08-12 15:05:44.000000000","message":"I\u0027ll abide by a consensus on this one.  To me, not having the else is cleaner and just as clear.","commit_id":"de2dc7ecb2a26b87e53204ec337a1c27a62bf584"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"8ac76e161afe2c1872228b89a7b8d3c2733c045a","unresolved":false,"context_lines":[{"line_number":453,"context_line":"            if utils.generate_fullname_for(ext.obj) \u003d\u003d plugin_name:"},{"line_number":454,"context_line":"                return ext.obj"},{"line_number":455,"context_line":"        else:"},{"line_number":456,"context_line":"            raise SecretStoreSupportedPluginNotFound()"},{"line_number":457,"context_line":""},{"line_number":458,"context_line":"    def get_plugin_generate(self, key_spec):"},{"line_number":459,"context_line":"        \"\"\"Gets a secret generate plugin."}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_25e74b47","line":456,"in_reply_to":"baada198_33615411","updated":"2014-08-12 14:54:54.000000000","message":"Without the else it would indeed do the same thing, in this case. But, my intent is to have it explicit that it will raise an exception if it doesn\u0027t return from the for.","commit_id":"de2dc7ecb2a26b87e53204ec337a1c27a62bf584"},{"author":{"_account_id":8623,"name":"Kaitlin Farr","email":"kaitlin.farr@jhuapl.edu","username":"kaitlin.farr"},"change_message_id":"a70e940b0dab68c6e2089cd913f91a629fa588f9","unresolved":false,"context_lines":[{"line_number":453,"context_line":"            if utils.generate_fullname_for(ext.obj) \u003d\u003d plugin_name:"},{"line_number":454,"context_line":"                return ext.obj"},{"line_number":455,"context_line":"        else:"},{"line_number":456,"context_line":"            raise SecretStoreSupportedPluginNotFound()"},{"line_number":457,"context_line":""},{"line_number":458,"context_line":"    def get_plugin_generate(self, key_spec):"},{"line_number":459,"context_line":"        \"\"\"Gets a secret generate plugin."}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_33615411","line":456,"in_reply_to":"baada198_78a56bb2","updated":"2014-08-12 14:50:59.000000000","message":"I had to do a little bit of research on python for/else statements (https://docs.python.org/2/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops) but it looks like with or without the \u0027else\u0027, it\u0027ll do the same thing as long as there\u0027s a return or break statement in the \u0027for\u0027 loop.  I\u0027m not sure if there\u0027s a benefit to one or the other.\n\nEither way, we should just keep it consistent.","commit_id":"de2dc7ecb2a26b87e53204ec337a1c27a62bf584"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"6bdd48a88d573064bfc0f973c202490c854dcf8a","unresolved":false,"context_lines":[{"line_number":453,"context_line":"            if utils.generate_fullname_for(ext.obj) \u003d\u003d plugin_name:"},{"line_number":454,"context_line":"                return ext.obj"},{"line_number":455,"context_line":"        else:"},{"line_number":456,"context_line":"            raise SecretStoreSupportedPluginNotFound()"},{"line_number":457,"context_line":""},{"line_number":458,"context_line":"    def get_plugin_generate(self, key_spec):"},{"line_number":459,"context_line":"        \"\"\"Gets a secret generate plugin."}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_25ce6bb7","line":456,"in_reply_to":"baada198_78a56bb2","updated":"2014-08-12 15:00:25.000000000","message":"to be clear, its just removing \"else:\" and not the raise of the exception (which we want).","commit_id":"de2dc7ecb2a26b87e53204ec337a1c27a62bf584"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"bf24aaaf3a2434f00f38ec3eda774b7edd530674","unresolved":false,"context_lines":[{"line_number":470,"context_line":"            if ext.obj.generate_supports(key_spec):"},{"line_number":471,"context_line":"                return ext.obj"},{"line_number":472,"context_line":"        else:"},{"line_number":473,"context_line":"            raise SecretStoreSupportedPluginNotFound()"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_58898723","line":473,"updated":"2014-08-12 14:25:42.000000000","message":"Same thing here.  Remove the else: clause.","commit_id":"de2dc7ecb2a26b87e53204ec337a1c27a62bf584"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"ae5e75dedcabed4ca70dfd7e4fc068c0d376a50e","unresolved":false,"context_lines":[{"line_number":424,"context_line":"        )"},{"line_number":425,"context_line":""},{"line_number":426,"context_line":"    @_extensions_should_be_configured"},{"line_number":427,"context_line":"    def get_plugin_store(self, key_spec, plugin_name\u003dNone,"},{"line_number":428,"context_line":"                         transport_key_needed\u003dFalse):"},{"line_number":429,"context_line":"        \"\"\"Gets a secret store plugin."},{"line_number":430,"context_line":"        :param: plugin_name: set to plugin_name to get specific plugin"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_bb437a0f","line":427,"updated":"2014-08-12 15:37:53.000000000","message":"I like this better +1","commit_id":"104f5814d4b5e6cf4fda60af73bb05d3dc3961f2"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"ae5e75dedcabed4ca70dfd7e4fc068c0d376a50e","unresolved":false,"context_lines":[{"line_number":439,"context_line":"                if utils.generate_fullname_for(ext.obj) \u003d\u003d plugin_name:"},{"line_number":440,"context_line":"                    return ext.obj"},{"line_number":441,"context_line":"            else:"},{"line_number":442,"context_line":"                raise SecretStoreSupportedPluginNotFound()"},{"line_number":443,"context_line":""},{"line_number":444,"context_line":"        if not transport_key_needed:"},{"line_number":445,"context_line":"            for ext in self.extensions:"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_db13ceff","line":442,"updated":"2014-08-12 15:37:53.000000000","message":"Please change this to :\nraise SecretStorePluginNotFound(plugin_name)\n\n(and change the relevant exception to accept a plugin_name)","commit_id":"104f5814d4b5e6cf4fda60af73bb05d3dc3961f2"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"ae5e75dedcabed4ca70dfd7e4fc068c0d376a50e","unresolved":false,"context_lines":[{"line_number":466,"context_line":"                return ext.obj"},{"line_number":467,"context_line":"        else:"},{"line_number":468,"context_line":"            raise SecretStoreSupportedPluginNotFound()"},{"line_number":469,"context_line":""},{"line_number":470,"context_line":"    @_extensions_should_be_configured"},{"line_number":471,"context_line":"    def get_plugin_generate(self, key_spec):"},{"line_number":472,"context_line":"        \"\"\"Gets a secret generate plugin."}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_1b8d462a","line":469,"updated":"2014-08-12 15:37:53.000000000","message":"I\u0027m still not a fan of the extraneous else: here, but can live with it if others think it helps make things clearer.","commit_id":"104f5814d4b5e6cf4fda60af73bb05d3dc3961f2"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"7c52388ce39d9823923b11787f484bfbb46c3fc9","unresolved":false,"context_lines":[{"line_number":464,"context_line":"        for ext in self.extensions:"},{"line_number":465,"context_line":"            if utils.generate_fullname_for(ext.obj) \u003d\u003d plugin_name:"},{"line_number":466,"context_line":"                return ext.obj"},{"line_number":467,"context_line":"        else:"},{"line_number":468,"context_line":"            raise SecretStoreSupportedPluginNotFound()"},{"line_number":469,"context_line":""},{"line_number":470,"context_line":"    @_enforce_extensions_configured"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_3e903841","line":467,"updated":"2014-08-12 15:55:33.000000000","message":"we are deleting the else, right?  then the raise goes out to match the indent of the for stmt.","commit_id":"44791ccd6eda8b2013d278b7dad7be41d34d3fad"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"7c52388ce39d9823923b11787f484bfbb46c3fc9","unresolved":false,"context_lines":[{"line_number":480,"context_line":"            if ext.obj.generate_supports(key_spec):"},{"line_number":481,"context_line":"                return ext.obj"},{"line_number":482,"context_line":"        else:"},{"line_number":483,"context_line":"            raise SecretStoreSupportedPluginNotFound()"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_3e2d9845","line":483,"updated":"2014-08-12 15:55:33.000000000","message":"then the raise goes out to match the indent of the for stmt.  The way it sits now it actually won\u0027t work if there are extensions but no extension that supports the provided key spec","commit_id":"44791ccd6eda8b2013d278b7dad7be41d34d3fad"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"bada9a271676278634c14d6fb637f3f0fe6a37e8","unresolved":false,"context_lines":[{"line_number":440,"context_line":"        :returns: SecretStoreBase plugin implementation"},{"line_number":441,"context_line":"        \"\"\""},{"line_number":442,"context_line":""},{"line_number":443,"context_line":"        if plugin_name is not None:"},{"line_number":444,"context_line":"            for ext in self.extensions:"},{"line_number":445,"context_line":"                if utils.generate_fullname_for(ext.obj) \u003d\u003d plugin_name:"},{"line_number":446,"context_line":"                    return ext.obj"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_f99edaf8","line":443,"updated":"2014-08-12 16:24:50.000000000","message":"Just want to clarify - if user provides a name then we ignore the transport_key_needed and only lookup the name.\n\nI think the else here is dead code based on the decorator - we should never get to the for loop if there are no extensions, so we should never hit the else clause.\n\nHowever, if we go thru all of the extensions and don\u0027t find a match then we want to raise the exception.\n\nSo I think the fix here is to delete else: line and then move raise indentation to match the level of the for stmt.","commit_id":"70d198ac6d27a47f2c96f0047ebbf7e3b0360cc7"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"0b3fa90228c1c6967a02dd1a31b8bc5fa2621a4c","unresolved":false,"context_lines":[{"line_number":440,"context_line":"        :returns: SecretStoreBase plugin implementation"},{"line_number":441,"context_line":"        \"\"\""},{"line_number":442,"context_line":""},{"line_number":443,"context_line":"        if plugin_name is not None:"},{"line_number":444,"context_line":"            for ext in self.extensions:"},{"line_number":445,"context_line":"                if utils.generate_fullname_for(ext.obj) \u003d\u003d plugin_name:"},{"line_number":446,"context_line":"                    return ext.obj"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_606d8d67","line":443,"in_reply_to":"baada198_2f056478","updated":"2014-08-13 07:21:15.000000000","message":"I will remove the else as there actually seems to be confusion on how it works. I had the impression that it\u0027s the pythonic way of expressing what I meant, but I see now what happened. Thanks for the input though.","commit_id":"70d198ac6d27a47f2c96f0047ebbf7e3b0360cc7"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"397bf71d394a51a2abf7f7d25bb4b79f8bb26011","unresolved":false,"context_lines":[{"line_number":440,"context_line":"        :returns: SecretStoreBase plugin implementation"},{"line_number":441,"context_line":"        \"\"\""},{"line_number":442,"context_line":""},{"line_number":443,"context_line":"        if plugin_name is not None:"},{"line_number":444,"context_line":"            for ext in self.extensions:"},{"line_number":445,"context_line":"                if utils.generate_fullname_for(ext.obj) \u003d\u003d plugin_name:"},{"line_number":446,"context_line":"                    return ext.obj"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_2f056478","line":443,"in_reply_to":"baada198_f99edaf8","updated":"2014-08-12 17:10:34.000000000","message":"In this case, the else: actually says -- if you\u0027ve gone through the whole loop without matching, then execute the else -- which means throw the exception.\n\nIt is syntactically equivalent to :\n\nfor ..:\n   if match:\n      return foo\n\nraise not_found()\n\nJuan argues that using the else: construction makes things clearer.\n\nI think it makes thing less concise and more confusing and I think you just proved my point.  I also vote for removing the else.","commit_id":"70d198ac6d27a47f2c96f0047ebbf7e3b0360cc7"},{"author":{"_account_id":9914,"name":"Ade Lee","email":"alee@redhat.com","username":"alee"},"change_message_id":"bbc68c46ff765bc152701caf8f2177f18d0e209e","unresolved":false,"context_lines":[{"line_number":458,"context_line":"                        ext.obj.store_secret_supports(key_spec):"},{"line_number":459,"context_line":"                    return ext.obj"},{"line_number":460,"context_line":""},{"line_number":461,"context_line":"        raise SecretStorePluginNotFound()"},{"line_number":462,"context_line":""},{"line_number":463,"context_line":"    @_enforce_extensions_configured"},{"line_number":464,"context_line":"    def get_plugin_retrieve_delete(self, plugin_name):"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_b96aa27f","line":461,"updated":"2014-08-12 16:12:05.000000000","message":"This should probably be SecretStoreSupportedPluginNotFound()\n\nTo be clear, there are two types of exceptions here:\n1) We tried to look for a specific plugin - but it wasn\u0027t there.\n\n2) We tried to look for a plugin that supports the relevant operation (with the relevant key_spec etc) and this was not found.\n\nI think these should return different messages.  We can do that either with two different exceptions - say SecretStorePluginNotFound() and SecretStoreSupportedPluginNotFound()  --\u003e there must be a better name for this.\n\nOr, just have a single exception - SecretStorePluginNotFound but have different messages depending on if plugin_name is provided.","commit_id":"70d198ac6d27a47f2c96f0047ebbf7e3b0360cc7"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"bada9a271676278634c14d6fb637f3f0fe6a37e8","unresolved":false,"context_lines":[{"line_number":458,"context_line":"                        ext.obj.store_secret_supports(key_spec):"},{"line_number":459,"context_line":"                    return ext.obj"},{"line_number":460,"context_line":""},{"line_number":461,"context_line":"        raise SecretStorePluginNotFound()"},{"line_number":462,"context_line":""},{"line_number":463,"context_line":"    @_enforce_extensions_configured"},{"line_number":464,"context_line":"    def get_plugin_retrieve_delete(self, plugin_name):"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_99795e32","line":461,"in_reply_to":"baada198_b96aa27f","updated":"2014-08-12 16:24:50.000000000","message":"Two different exceptions please.","commit_id":"70d198ac6d27a47f2c96f0047ebbf7e3b0360cc7"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"bada9a271676278634c14d6fb637f3f0fe6a37e8","unresolved":false,"context_lines":[{"line_number":470,"context_line":"        for ext in self.extensions:"},{"line_number":471,"context_line":"            if utils.generate_fullname_for(ext.obj) \u003d\u003d plugin_name:"},{"line_number":472,"context_line":"                return ext.obj"},{"line_number":473,"context_line":"        else:"},{"line_number":474,"context_line":"            raise SecretStorePluginNotFound(plugin_name)"},{"line_number":475,"context_line":""},{"line_number":476,"context_line":"    @_enforce_extensions_configured"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_198d4e2a","line":473,"updated":"2014-08-12 16:24:50.000000000","message":"see previous patchset comments about the else.","commit_id":"70d198ac6d27a47f2c96f0047ebbf7e3b0360cc7"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"0b3fa90228c1c6967a02dd1a31b8bc5fa2621a4c","unresolved":false,"context_lines":[{"line_number":470,"context_line":"        for ext in self.extensions:"},{"line_number":471,"context_line":"            if utils.generate_fullname_for(ext.obj) \u003d\u003d plugin_name:"},{"line_number":472,"context_line":"                return ext.obj"},{"line_number":473,"context_line":"        else:"},{"line_number":474,"context_line":"            raise SecretStorePluginNotFound(plugin_name)"},{"line_number":475,"context_line":""},{"line_number":476,"context_line":"    @_enforce_extensions_configured"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_60110df8","line":473,"in_reply_to":"baada198_198d4e2a","updated":"2014-08-13 07:21:15.000000000","message":"Steve, the way it is set now will actually work if there are extensions and it doesn\u0027t find it. The else statement for the for works in such a way that if the for doesn\u0027t break or exit, then it will invariably go for the else statement.","commit_id":"70d198ac6d27a47f2c96f0047ebbf7e3b0360cc7"},{"author":{"_account_id":9234,"name":"Steve Heyman","email":"steve@heyman.com","username":"hockeynut"},"change_message_id":"bada9a271676278634c14d6fb637f3f0fe6a37e8","unresolved":false,"context_lines":[{"line_number":486,"context_line":"            if ext.obj.generate_supports(key_spec):"},{"line_number":487,"context_line":"                return ext.obj"},{"line_number":488,"context_line":"        else:"},{"line_number":489,"context_line":"            raise SecretStoreSupportedPluginNotFound()"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_f96a5a4e","line":489,"updated":"2014-08-12 16:24:50.000000000","message":"see previous patchset comments about the else.","commit_id":"70d198ac6d27a47f2c96f0047ebbf7e3b0360cc7"}]}
