diff --git a/ironic/drivers/modules/ansible/playbooks/roles/discover/tasks/roothints.yaml b/ironic/drivers/modules/ansible/playbooks/roles/discover/tasks/roothints.yaml index 488a218132..d150754b8c 100644 --- a/ironic/drivers/modules/ansible/playbooks/roles/discover/tasks/roothints.yaml +++ b/ironic/drivers/modules/ansible/playbooks/roles/discover/tasks/roothints.yaml @@ -1,6 +1,6 @@ - name: get devices wwn facts facts_wwn: - devices: "{{ ansible_devices.keys() }}" + devices: "{{ ansible_devices.keys() | list }}" - name: calculate root hint root_hints: diff --git a/releasenotes/notes/bug-2006266-85da234583ca0c32.yaml b/releasenotes/notes/bug-2006266-85da234583ca0c32.yaml new file mode 100644 index 0000000000..c741a1081f --- /dev/null +++ b/releasenotes/notes/bug-2006266-85da234583ca0c32.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + An issue regarding the ``ansible`` deploy interface. The discovery + playbook used to gather wwn and serials was broken for python3 due to the + dict().keys() object not being a list in python3.