foreman: fixed json list index 0

Change-Id: I417dd1ee2c847474447682d2b25f5c07aee0223b