Skip to content

Commit

Permalink
Use translated network name
Browse files Browse the repository at this point in the history
Instead of hard-coding a name translation, let's use the "translator"
provided by the networking_mapper directly.
  • Loading branch information
cjeanner authored and openshift-merge-bot[bot] committed Jul 3, 2024
1 parent 3e1f0ad commit bcc9b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/libvirt_manager/tasks/reserve_dnsmasq_ips.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
ternary(_translate[net.name], [net.name])
}}
_net_name: >-
{{ (net.name is match '.*osp_trunk$') | ternary('ctlplane', net.name) }}
{{ _net_domain | first }}
_cleaned_netname: "{{ _net_name | regex_replace('^cifmw[_-]', '') }}"
block:
- name: Create host records
Expand Down

0 comments on commit bcc9b65

Please sign in to comment.