diff options
author | Zhijiang Hu <hu.zhijiang@zte.com.cn> | 2017-03-15 14:28:04 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-03-15 14:28:04 +0000 |
commit | 3be546d10b71cec1d8a4d2a2e3d513284bbc6569 (patch) | |
tree | b2133ed060e32ea4163b006a229c93ddb6c83586 /deploy/common | |
parent | af66c7f4fd99ca8491fa3024832cdad0568b3047 (diff) | |
parent | e62117170f9dd562cdb85bf6bd95644655e046c2 (diff) |
Merge "add default_floating_pool configuration for nova-api"
Diffstat (limited to 'deploy/common')
-rw-r--r-- | deploy/common/__init__.py | 0 | ||||
-rw-r--r-- | deploy/common/query.py | 5 |
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 |