Browse Source

Merge pull request #7742 from smarterclayton/cherry

Skip oc_adm_csr when no bootstrapping is required on GCP
OpenShift Merge Robot 7 years ago
parent
commit
2eadea3c93
1 changed files with 1 additions and 0 deletions
  1. 1 0
      roles/openshift_gcp/tasks/configure_master_bootstrap.yml

+ 1 - 0
roles/openshift_gcp/tasks/configure_master_bootstrap.yml

@@ -34,3 +34,4 @@
   oc_adm_csr:
     nodes: "{{ groups['all'] | map('extract', hostvars) | selectattr('gce_metadata.bootstrap', 'match', 'true') | map(attribute='gce_name') | list }}"
     timeout: 60
+  when: groups['all'] | map('extract', hostvars) | selectattr('gce_metadata.bootstrap', 'match', 'true') | map(attribute='gce_name') | list | length > 0