mjm-migrate-host Add better handling for checkout interruptions

If you lose your connection to vCenter while putting a host into
maintenance mode, that task will eventually complete, but then the host
won't be moved into the right cluster. Even worse, re-running the
command will just error.

This change fixes it so that re-running the checkout command will
properly detect when the chosen host is already in maintenance mode, and
skip ahead to moving the host and bringing it up again.

Matt Moriarity avatar Matt Moriarity

Push event #24 passed

  • Ran for
AMD64
Go: 1.8
Git

We're sorry, but this data is not available anymore. Please check the repository settings in Travis CI.