)]}'
{"swift/common/storage_policy.py":[{"author":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"change_message_id":"942536ffed5498a27fe728228e2bccdbd535ad16","unresolved":true,"context_lines":[{"line_number":924,"context_line":"    Parse storage policies in ``swift.conf`` - note that validation"},{"line_number":925,"context_line":"    is done when the :class:`StoragePolicyCollection` is instantiated."},{"line_number":926,"context_line":""},{"line_number":927,"context_line":"    :param conf: dict conf returned from common.utils.config"},{"line_number":928,"context_line":"    \"\"\""},{"line_number":929,"context_line":"    policies \u003d []"},{"line_number":930,"context_line":"    for section, config_options in conf.items():"}],"source_content_type":"text/x-python","patch_set":1,"id":"48411048_e9e7ebfe","line":927,"range":{"start_line":927,"start_character":54,"end_line":927,"end_character":60},"updated":"2026-01-09 03:16:35.000000000","message":"... `.readconf`","commit_id":"e3558512027a2cdeeedf7d3bddcf5a3894fa41bc"},{"author":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"change_message_id":"942536ffed5498a27fe728228e2bccdbd535ad16","unresolved":true,"context_lines":[{"line_number":977,"context_line":"    try:"},{"line_number":978,"context_line":"        policy_conf \u003d config.readconf(utils.SWIFT_CONF_FILE)"},{"line_number":979,"context_line":"    except IOError:"},{"line_number":980,"context_line":"        policy_conf \u003d {}"},{"line_number":981,"context_line":"    try:"},{"line_number":982,"context_line":"        _POLICIES \u003d parse_storage_policies(policy_conf)"},{"line_number":983,"context_line":"    except PolicyError as e:"}],"source_content_type":"text/x-python","patch_set":1,"id":"f29af2eb_ec73b129","line":980,"updated":"2026-01-09 03:16:35.000000000","message":"So now we swallow all IOErrors? IDK that I like that...\n\nI guess it might be a bit of a stretch to run into trouble, though:\n\n- have a valid `/etc/swift/swift.conf`, so you *can* import utils\n- monkey-patch `SWIFT_CONF_FILE` directly instead of using `set_swift_dir`\n- *then, separately,* call `reload_storage_policies`\n\n(Though maybe that last one could look more like \"import `storage_policy`, and utils is already loaded in `sys.modules`? IDK)\n\nCould also manifest as something like \"something out-of-band changed perms on swift.conf (or deleted it) and we raced\" though... we really want to roll back to \"I guess there\u0027s just Policy-0 then\" in that case?","commit_id":"e3558512027a2cdeeedf7d3bddcf5a3894fa41bc"}]}
