Merge "Support updating extra_specs in project module"

This commit is contained in:
Zuul
2026-03-19 21:41:00 +00:00
committed by Gerrit Code Review
2 changed files with 33 additions and 1 deletions

View File

@@ -181,7 +181,7 @@ class IdentityProjectModule(OpenStackModule):
raise ValueError('Duplicate key(s) in extra_specs: {0}'
.format(', '.join(list(duplicate_keys))))
for k, v in extra_specs.items():
if v != project[k]:
if k not in project or v != project[k]:
attributes[k] = v
if attributes: