Once the instance shuts down, the client is disconnected. So, destroy the client so that we don't try to use it to "clean up".
Signed-off-by: Ben Lipton <[email protected]> --- p2v-transfer/p2v_transfer.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/p2v-transfer/p2v_transfer.py b/p2v-transfer/p2v_transfer.py index 2926bdb..2653312 100755 --- a/p2v-transfer/p2v_transfer.py +++ b/p2v-transfer/p2v_transfer.py @@ -610,6 +610,8 @@ def main(argv): TransferFiles(user, host, keyfile) RunFixScripts(client) ShutDownTarget(client) + # If this succeeds, the client won't be useful anymore + client = None else: raise P2VError("Modules matching instance kernel not present on source" " OS. If your kernel does not use modules, you may want" -- 1.7.3.1
