From eee7c4082a9f512bcdae49885ef0db288c66ae2f Mon Sep 17 00:00:00 2001 From: isaac-hammes Date: Tue, 22 Aug 2023 13:36:33 -0700 Subject: [PATCH] (maint) Raise error when ip address is not given to vm after clone. --- lib/vmpooler/pool_manager.rb | 3 +++ spec/unit/pool_manager_spec.rb | 15 +++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/lib/vmpooler/pool_manager.rb b/lib/vmpooler/pool_manager.rb index d16db1aa..82ed6a55 100644 --- a/lib/vmpooler/pool_manager.rb +++ b/lib/vmpooler/pool_manager.rb @@ -470,6 +470,9 @@ def _clone_vm(pool_name, provider, dns_plugin, request_id = nil, pool_alias = ni ip_start = Time.now ip = provider.get_vm_ip_address(new_vmname, pool_name) ip_finish = format('%