cloudfoundry/bosh — pull request #334 by frodenas (2013-07-01 13:49:44+00:00)
Title: [director] Reorder instance update steps [fixes #52547427]

When updating an instance, sometimes we need to recreate the vm
(eg when IP changed). If the job has a persistent disk, that means
attaching a disk to the vm, detaching the disk, recreate the vm, and
reattach the disk again.

In this commit we are reordering the update steps, so the persistent
disk step is executed after any network change. In this way, we are
only attaching the disk once.

It also fixes a bug that prevented to reattach the disk when the vm
was recreated.