summaryrefslogtreecommitdiffstats
path: root/filter_plugins
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-08-17 13:54:57 -0400
committerScott Dodson <sdodson@redhat.com>2016-08-24 16:02:49 -0400
commit85c6743a011884abfcdb2ded665e46f46023522e (patch)
tree1e5650d30768c3e3a7622da903c17888d706d198 /filter_plugins
parent7c36172fb08e19abcd08b7be0aa7de68f5f166ad (diff)
downloadopenshift-85c6743a011884abfcdb2ded665e46f46023522e.tar.gz
openshift-85c6743a011884abfcdb2ded665e46f46023522e.tar.bz2
openshift-85c6743a011884abfcdb2ded665e46f46023522e.tar.xz
openshift-85c6743a011884abfcdb2ded665e46f46023522e.zip
Add ability to disable pvc creation
Diffstat (limited to 'filter_plugins')
-rw-r--r--filter_plugins/oo_filters.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py
index 0e4f23922..a4dceb679 100644
--- a/filter_plugins/oo_filters.py
+++ b/filter_plugins/oo_filters.py
@@ -734,7 +734,8 @@ class FilterModule(object):
if 'storage' in hostvars['openshift']['hosted'][component]:
kind = hostvars['openshift']['hosted'][component]['storage']['kind']
create_pv = hostvars['openshift']['hosted'][component]['storage']['create_pv']
- if kind != None and create_pv:
+ create_pvc = hostvars['openshift']['hosted'][component]['storage']['create_pvc']
+ if kind != None and create_pv and create_pvc:
volume = hostvars['openshift']['hosted'][component]['storage']['volume']['name']
size = hostvars['openshift']['hosted'][component]['storage']['volume']['size']
access_modes = hostvars['openshift']['hosted'][component]['storage']['access_modes']