Skip to content

Commit 57aad94

Browse files
committed
Don't fail hard on missing traits
1 parent 097ba67 commit 57aad94

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

blazar/plugins/flavor/flavor_plugin.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,11 @@ def _query_available_hosts(self, start_date, end_date,
118118
# we should be able to exclude hosts that don't match the
119119
# resource requests, e.g. baremetal vs virtual
120120
# or missing traits
121-
if resource_traits:
122-
raise mgr_exceptions.NotImplemented(
123-
error="Resource traits not supported yet")
121+
# TODO(johngarbutt) explore supporting custom traits
122+
# used to group hosts, e.g. for different types of hardware
123+
# if resource_traits:
124+
# raise mgr_exceptions.NotImplemented(
125+
# error="Resource traits not supported yet")
124126
hosts = db_api.reservable_host_get_all_by_queries([])
125127

126128
# find reservations for each host in our time period

0 commit comments

Comments
 (0)