From e62117170f9dd562cdb85bf6bd95644655e046c2 Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Wed, 15 Mar 2017 14:31:36 +0800 Subject: add default_floating_pool configuration for nova-api Change-Id: I9db5509667e9c10a9c07b55531c6d78fb95cc223 Signed-off-by: SerenaFeng --- deploy/common/__init__.py | 0 deploy/common/query.py | 5 +++++ 2 files changed, 5 insertions(+) create mode 100644 deploy/common/__init__.py create mode 100644 deploy/common/query.py (limited to 'deploy/common') diff --git a/deploy/common/__init__.py b/deploy/common/__init__.py new file mode 100644 index 00000000..e69de29b 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 -- cgit 1.2.3-korg