From 4325ccc857233ecca60de1ae4344e9f77581d105 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Mon, 30 Apr 2018 12:59:07 -0500 Subject: [PATCH] validate: only check mon and rgw config if the node is in those groups Signed-off-by: Andrew Schoen --- plugins/actions/validate.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/actions/validate.py b/plugins/actions/validate.py index 814785230..f60e35f08 100644 --- a/plugins/actions/validate.py +++ b/plugins/actions/validate.py @@ -50,13 +50,14 @@ class ActionModule(ActionBase): notario_store["monitor_address_block"] = host_vars.get("monitor_address_block", None) notario_store["monitor_interface"] = host_vars.get("monitor_interface", None) - notario.validate(host_vars, monitor_options, defined_keys=True) + if host_vars["mon_group_name"] in host_vars["group_names"]: + notario.validate(host_vars, monitor_options, defined_keys=True) notario_store["radosgw_address"] = host_vars.get("radosgw_address", None) notario_store["radosgw_address_block"] = host_vars.get("radosgw_address_block", None) notario_store["radosgw_interface"] = host_vars.get("radosgw_interface", None) - if host_vars["rgw_group_name"] in host_vars["groups"]: + if host_vars["rgw_group_name"] in host_vars["group_names"]: notario.validate(host_vars, rados_options, defined_keys=True) # validate osd scenario setup