Blame SOURCES/bz1285523-2-fence_compute-taggable-instance-support.patch

09283b
From 90dfc11618d7bb3aacb0f572b83518e6a6cf8bf5 Mon Sep 17 00:00:00 2001
09283b
From: Andrew Beekhof <andrew@beekhof.net>
09283b
Date: Tue, 14 Jun 2016 20:43:49 +1000
09283b
Subject: [PATCH] compute: Correctly handle installations without tagged
09283b
 flavours
09283b
09283b
---
09283b
 fence/agents/compute/fence_compute.py | 2 +-
09283b
 1 file changed, 1 insertion(+), 1 deletion(-)
09283b
09283b
diff --git a/fence/agents/compute/fence_compute.py b/fence/agents/compute/fence_compute.py
09283b
index c6b5083..ae19588 100644
09283b
--- a/fence/agents/compute/fence_compute.py
09283b
+++ b/fence/agents/compute/fence_compute.py
09283b
@@ -90,7 +90,7 @@ def _get_evacuable_flavors():
09283b
 	# we need to call each of the flavor to get them.
09283b
 	for flavor in flavors:
09283b
 		tag = flavor.get_keys().get(EVACUABLE_TAG)
09283b
-		if tag.strip().lower() in TRUE_TAGS:
09283b
+		if tag and tag.strip().lower() in TRUE_TAGS:
09283b
 			result.append(flavor.id)
09283b
 	return result
09283b