Skip to content

Commit

Permalink
compute: Correctly handle installations without tagged flavours
Browse files Browse the repository at this point in the history
  • Loading branch information
beekhof committed Jun 14, 2016
1 parent caefb0e commit 90dfc11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fence/agents/compute/fence_compute.py
Expand Up @@ -90,7 +90,7 @@ def _get_evacuable_flavors():
# we need to call each of the flavor to get them.
for flavor in flavors:
tag = flavor.get_keys().get(EVACUABLE_TAG)
if tag.strip().lower() in TRUE_TAGS:
if tag and tag.strip().lower() in TRUE_TAGS:
result.append(flavor.id)
return result

Expand Down

0 comments on commit 90dfc11

Please sign in to comment.