storage: rbd: actually index the array when iterating over it
storage: rbd: actually index the array when iterating over it

https://bugzilla.redhat.com/show_bug.cgi?id=1729292

Fixes: 3aa190f2a43a632b542a6ba751a6c3ab4d51f1dd
Signed-off-by: Ján Tomko <4cab11cfb98d3c937327354a78eb07dbb6ee2bc6@redhat.com>
Reviewed-by: Daniel P. Berrangé <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

eskultety/libvirt,andreabolognani/libvirt,eskultety/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,libvirt/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,eskultety/libvirt,libvirt/libvirt,crobinso/libvirt,libvirt/libvirt,olafhering/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,olafhering/libvirt,jfehlig/libvirt,crobinso/libvirt,zippy2/libvirt,libvirt/libvirt,nertpinx/libvirt,andreabolognani/libvirt,jardasgit/libvirt,eskultety/libvirt,zippy2/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,jfehlig/libvirt,jardasgit/libvirt,jfehlig/libvirt,olafhering/libvirt,nertpinx/libvirt,zippy2/libvirt,nertpinx/libvirt,zippy2/libvirt,nertpinx/libvirt,eskultety/libvirt,jardasgit/libvirt,jardasgit/libvirt,crobinso/libvirt,crobinso/libvirt,andreabolognani/libvirt,olafhering/libvirt,andreabolognani/libvirt