forked from openstack/blazar
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improved validation in computehost extra capability model
Previously, validation was only performed for the `capability_id` and `capability_value` attributes separately. This update consolidates the validation logic into a single method called `validate_capability`, which is invoked for both attributes. Additionally, the docstring for the method has been updated to provide clarity on when each validation scenario occurs. Change-Id: I149784b5e4be71b34dfebad470cc645fed5656b4
- Loading branch information
1 parent
5c516bc
commit b904185
Showing
1 changed file
with
28 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters