)]}'
{"zun/container/docker/driver.py":[{"author":{"_account_id":16277,"name":"Pradeep Kumar Singh","email":"ps4openstack@gmail.com","username":"pradeep_singh"},"change_message_id":"6aabcd81dac50d1aad544174eb120accead694d1","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                host_config[\u0027cpu_quota\u0027] \u003d int(100000 * container.cpu)"},{"line_number":92,"context_line":"                host_config[\u0027cpu_period\u0027] \u003d 100000"},{"line_number":93,"context_line":"            if container.restart_policy is not None:"},{"line_number":94,"context_line":"                count \u003d int(container.restart_policy.get("},{"line_number":95,"context_line":"                    \u0027MaximumRetryCount\u0027, 0))"},{"line_number":96,"context_line":"                name \u003d container.restart_policy[\u0027Name\u0027]"},{"line_number":97,"context_line":"                host_config[\u0027restart_policy\u0027] \u003d {\u0027Name\u0027: name,"},{"line_number":98,"context_line":"                                                 \u0027MaximumRetryCount\u0027: count}"}],"source_content_type":"text/x-python","patch_set":1,"id":"5ff73747_943c9a2f","line":95,"range":{"start_line":94,"start_character":16,"end_line":95,"end_character":44},"updated":"2017-04-28 14:53:53.000000000","message":"@Hongbin, did you see any failure. I think below code handles this.\nhttps://github.com/openstack/zun/blob/master/zun/api/controllers/v1/containers.py#L177\n\nPlease correct me if i am wrong.","commit_id":"8dc765f96995c5a1817f8f1a5039fdd4d404b5ea"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"0d7bb35506b33d8d8e9ce4978dcd02f0b41465c8","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                host_config[\u0027cpu_quota\u0027] \u003d int(100000 * container.cpu)"},{"line_number":92,"context_line":"                host_config[\u0027cpu_period\u0027] \u003d 100000"},{"line_number":93,"context_line":"            if container.restart_policy is not None:"},{"line_number":94,"context_line":"                count \u003d int(container.restart_policy.get("},{"line_number":95,"context_line":"                    \u0027MaximumRetryCount\u0027, 0))"},{"line_number":96,"context_line":"                name \u003d container.restart_policy[\u0027Name\u0027]"},{"line_number":97,"context_line":"                host_config[\u0027restart_policy\u0027] \u003d {\u0027Name\u0027: name,"},{"line_number":98,"context_line":"                                                 \u0027MaximumRetryCount\u0027: count}"}],"source_content_type":"text/x-python","patch_set":1,"id":"5ff73747_dacda9b7","line":95,"range":{"start_line":94,"start_character":16,"end_line":95,"end_character":44},"in_reply_to":"5ff73747_943c9a2f","updated":"2017-04-28 15:42:17.000000000","message":"Pradeep,\n\nI added a bug report to clarify that: https://bugs.launchpad.net/zun/+bug/1687050 . This error occurred when I was testing the Heat plugin. The key \u0027MaxmumRetryCount\u0027 is optional there and the missing of this key will cause this error.","commit_id":"8dc765f96995c5a1817f8f1a5039fdd4d404b5ea"}]}
