)]}'
{"oslo_policy/policy.py":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"601bf707b52dfc354c7efac0daa0f47c9d5044fd","unresolved":false,"context_lines":[{"line_number":608,"context_line":"                        )"},{"line_number":609,"context_line":"                        warnings.warn(deprecated_msg)"},{"line_number":610,"context_line":"                if default.deprecated_for_removal and ("},{"line_number":611,"context_line":"                        default.name in self.file_rules):"},{"line_number":612,"context_line":"                    # If a policy is going to be removed altogether, then we"},{"line_number":613,"context_line":"                    # need to make sure we let operators know so they can clean"},{"line_number":614,"context_line":"                    # up their policy files, if they are overriding it."}],"source_content_type":"text/x-python","patch_set":2,"id":"9f91af0f_a784770d","line":611,"range":{"start_line":611,"start_character":45,"end_line":611,"end_character":55},"updated":"2018-01-05 21:04:11.000000000","message":"This will warn for all deprecated policy rules as long as just one is set specifically in the policy file, right? Is there a way to see if just a specific deprecated policy rule is in the file and ignore those that are just coming from code?","commit_id":"4f68708a495fa2237b62491e355db99fac1f7edb"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"72008e4fb5e8c220996d3f09cb19d1f0a50a66db","unresolved":false,"context_lines":[{"line_number":608,"context_line":"                        )"},{"line_number":609,"context_line":"                        warnings.warn(deprecated_msg)"},{"line_number":610,"context_line":"                if default.deprecated_for_removal and ("},{"line_number":611,"context_line":"                        default.name in self.file_rules):"},{"line_number":612,"context_line":"                    # If a policy is going to be removed altogether, then we"},{"line_number":613,"context_line":"                    # need to make sure we let operators know so they can clean"},{"line_number":614,"context_line":"                    # up their policy files, if they are overriding it."}],"source_content_type":"text/x-python","patch_set":2,"id":"9f91af0f_a7e797e4","line":611,"range":{"start_line":611,"start_character":45,"end_line":611,"end_character":55},"in_reply_to":"9f91af0f_a784770d","updated":"2018-01-05 21:07:35.000000000","message":"If a policy is deprecated in code and the operator has it in their policy file, this will get triggered and a warning will be logged.\n\nThis is processing all registered policies, so it will do this for each deprecated policy that is being overridden.\n\nIf compute:foo, compute:bar, and compute:baz are all deprecated for removal, but the operator only overrides compute:foo and compute:bar, then warning will be issued for only those two policies. This won\u0027t issue a warning for compute:baz since the operator isn\u0027t overriding it.","commit_id":"4f68708a495fa2237b62491e355db99fac1f7edb"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"dea02c514f06eb4c1c4e19a60d00cc1b0f9bf324","unresolved":false,"context_lines":[{"line_number":608,"context_line":"                        )"},{"line_number":609,"context_line":"                        warnings.warn(deprecated_msg)"},{"line_number":610,"context_line":"                if default.deprecated_for_removal and ("},{"line_number":611,"context_line":"                        default.name in self.file_rules):"},{"line_number":612,"context_line":"                    # If a policy is going to be removed altogether, then we"},{"line_number":613,"context_line":"                    # need to make sure we let operators know so they can clean"},{"line_number":614,"context_line":"                    # up their policy files, if they are overriding it."}],"source_content_type":"text/x-python","patch_set":2,"id":"9f91af0f_c7389b3e","line":611,"range":{"start_line":611,"start_character":45,"end_line":611,"end_character":55},"in_reply_to":"9f91af0f_a7e797e4","updated":"2018-01-05 21:09:46.000000000","message":"So, if I\u0027m understanding your question correctly, yes. All policies that are deprecated_for_removal in code won\u0027t log a warning unless they are being overridden.","commit_id":"4f68708a495fa2237b62491e355db99fac1f7edb"}]}
