Skip to content

Commit

Permalink
drop remaining netaddr
Browse files Browse the repository at this point in the history
commit fd20e99 dropped python-netaddr
dependency, remove remaining usage of filters requiring it

Signed-off-by: Michal Skrivanek <michal.skrivanek@redhat.com>
  • Loading branch information
michalskrivanek committed Apr 17, 2023
1 parent 81515b4 commit a4f4e9b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/702-drop-netaddr2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- HE - drop remaining filters using netaddr (https://github.com/oVirt/ovirt-ansible-collection/pull/702)
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,15 @@
owner: root
group: root
mode: 0644
when: he_vm_ip_addr is not none and he_vm_ip_addr | ipv4
when: he_vm_ip_addr is not none and he_vm_ip_addr
- name: Generate static network configuration for the engine VM, IPv6
ansible.builtin.template:
src: templates/ifcfg-eth0-static-ipv6.j2
dest: "{{ he_local_vm_dir }}/ifcfg-eth0"
owner: root
group: root
mode: 0644
when: he_vm_ip_addr is not none and he_vm_ip_addr | ipv6
when: he_vm_ip_addr is not none and he_vm_ip_addr
- name: Inject network configuration with guestfish
ansible.builtin.command: >-
guestfish -a {{ local_vm_disk_path }} --rw -i copy-in "{{ he_local_vm_dir }}/ifcfg-eth0"
Expand Down
2 changes: 1 addition & 1 deletion roles/hosted_engine_setup/tasks/fetch_host_ip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
ansible.builtin.set_fact:
he_host_ip: "{{
(
hostname_resolution_output.stdout.split() |
hostname_resolution_output.stdout.split() |
intersect(hostname_addresses_output.stdout.split())
)[0]
}}"
Expand Down

0 comments on commit a4f4e9b

Please sign in to comment.