<commit_before>---
- name: Get container facts
  kolla_container_facts:
    name: "{{ glance_services.keys() }}"
  register: container_facts

- name: Checking free port for Glance API
  wait_for:
    host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
    port: "{{ glance_api_port }}"
    connect_timeout: 1
    state: stopped
  when:
    - inventory_hostname in groups[glance_services['glance-api']['group']]
    - container_facts['glance_api'] is not defined

- name: Checking free port for Glance Registry
  wait_for:
    host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
    port: "{{ glance_registry_port }}"
    connect_timeout: 1
    state: stopped
  when:
    - inventory_hostname in groups[glance_services['glance-api']['group']]
    - container_facts['glance_registry'] is not defined<commit_msg>Fix the group check for glance-registry<commit_after>---
- name: Get container facts
  kolla_container_facts:
    name: "{{ glance_services.keys() }}"
  register: container_facts

- name: Checking free port for Glance API
  wait_for:
    host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
    port: "{{ glance_api_port }}"
    connect_timeout: 1
    state: stopped
  when:
    - inventory_hostname in groups[glance_services['glance-api']['group']]
    - container_facts['glance_api'] is not defined

- name: Checking free port for Glance Registry
  wait_for:
    host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
    port: "{{ glance_registry_port }}"
    connect_timeout: 1
    state: stopped
  when:
    - inventory_hostname in groups[glance_services['glance-registry']['group']]
    - container_facts['glance_registry'] is not defined
{'fraction_non_alphanumeric': 0.13825652415324818, 'fraction_numerical': 0.004441976679622432, 'mean_word_length': 4.613707165109035, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '511565', 'n_tokens_mistral': 576, 'n_tokens_neox': 571, 'n_words': 124}