The hack is needed since by some reason nailgun agent sometimes sends an empty disks array, even it's not empty at all, and that leads to bad consequences.
Still, as far as I remember, the issue leads to bad consequences in case we have deployed node, not a bootstrap one, so we can add check for bootstrap around this hack.
Well, the issue occurs because we have a hack:
https:/ /github. com/stackforge/ fuel-web/ blob/9fe750646b 3429a2af6619482 e159c37721dbdde /nailgun/ nailgun/ objects/ node.py# L480
The hack is needed since by some reason nailgun agent sometimes sends an empty disks array, even it's not empty at all, and that leads to bad consequences.
Still, as far as I remember, the issue leads to bad consequences in case we have deployed node, not a bootstrap one, so we can add check for bootstrap around this hack.