summaryrefslogtreecommitdiffstats
path: root/deploy/common
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-03-15 14:31:36 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-03-15 15:55:09 +0800
commite62117170f9dd562cdb85bf6bd95644655e046c2 (patch)
tree05a4e983534f1687f6d7b96b805eae7130bd08ed /deploy/common
parentc557362eb2a14055587feac228a4463bd96f6f4a (diff)
add default_floating_pool configuration for nova-api
Change-Id: I9db5509667e9c10a9c07b55531c6d78fb95cc223 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'deploy/common')
-rw-r--r--deploy/common/__init__.py0
-rw-r--r--deploy/common/query.py5
2 files changed, 5 insertions, 0 deletions
diff --git a/deploy/common/__init__.py b/deploy/common/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/deploy/common/__init__.py
diff --git a/deploy/common/query.py b/deploy/common/query.py
new file mode 100644
index 00000000..9b1adc2c
--- /dev/null
+++ b/deploy/common/query.py
@@ -0,0 +1,5 @@
+def find(function, sequence, default=None):
+ for s in sequence:
+ if function(s):
+ return s
+ return default