diff --git a/glance/db/sqlalchemy/api.py b/glance/db/sqlalchemy/api.py index f35a0dee71..cba7d79b89 100644 --- a/glance/db/sqlalchemy/api.py +++ b/glance/db/sqlalchemy/api.py @@ -589,7 +589,7 @@ def validate_image(values): def _update_values(image_ref, values): - for k in values.keys(): + for k in values: if getattr(image_ref, k) != values[k]: setattr(image_ref, k, values[k])