Vahid Mohsseni
e0dc4776bb
Fix exception when updating container with metadata
...
A ValueError is raised when running the object_container module with the
`metadata` param against a container with existing metadata.
When the module attempts to enumerate the existing container metadata, a
ValueError exception is raised, because the code is iterating over the
metadata keys, instead of `dict_items`.
Compare to the iteration through another dict `metadata` on the next
line:
new_metadata = dict((k, v) for k, v in metadata.items()
This change adds a call to `items()` on the dictionary.
Note that this is added outside the parentheses so that the behaviour of the
`or` statement is not affected, and that another exception isn't caused
if `container.metadata` is not a dict.
Closes-Bug: #2071934
Change-Id: Ie5e1f275839e38340a75ab18c3b9ec9bc7745d68
2024-10-09 08:57:18 +11:00
..
2020-01-17 14:07:24 +00:00
2023-02-21 13:07:29 +01:00
2024-06-26 01:57:55 +00:00
2023-01-16 13:51:01 +01:00
2023-03-28 12:05:38 +00:00
2023-01-16 13:51:01 +01:00
2023-02-21 13:07:29 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2024-05-02 16:59:12 +02:00
2023-01-31 19:52:19 +01:00
2023-03-14 18:43:35 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-31 19:52:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-26 13:35:27 +01:00
2023-01-26 13:35:27 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-03-05 09:41:42 +00:00
2023-01-26 13:36:30 +01:00
2023-01-16 13:51:01 +01:00
2023-01-26 13:34:06 +01:00
2023-01-26 13:34:06 +01:00
2023-01-26 13:34:33 +01:00
2023-01-26 13:34:33 +01:00
2023-01-26 13:34:53 +01:00
2023-01-26 13:34:53 +01:00
2023-01-26 13:35:09 +01:00
2023-02-21 13:07:29 +01:00
2023-01-16 13:51:01 +01:00
2023-07-25 12:49:28 +02:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-02-21 13:07:29 +01:00
2024-06-19 13:43:24 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2024-10-09 08:57:18 +11:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-10-17 08:56:21 +02:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2024-10-08 16:24:04 +03:00
2023-02-01 21:26:26 +02:00
2023-01-26 09:34:30 +01:00
2023-01-26 09:34:30 +01:00
2023-01-26 13:36:30 +01:00
2024-01-24 09:24:32 +00:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-02-23 21:20:51 +01:00
2023-09-01 17:53:32 +00:00
2023-01-31 19:52:01 +01:00
2023-01-16 13:51:01 +01:00
2024-06-25 09:27:32 +00:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2024-06-24 17:56:27 +02:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2024-04-05 12:30:22 +03:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-02-21 13:07:29 +01:00
2023-01-16 13:51:01 +01:00
2023-08-21 08:43:23 +02:00
2023-08-16 16:35:51 +02:00
2023-08-16 16:35:51 +02:00
2023-01-16 13:51:01 +01:00