From 429c05c13a26ba22161cfec5938aecbc1c1427c2 Mon Sep 17 00:00:00 2001 From: spisarski Date: Fri, 3 Nov 2017 12:26:02 -0600 Subject: Quick fix around static IPs and ports in launch.py application. Change-Id: I81b74fb37aee37644f3092251ae5163d57392fdc Signed-off-by: spisarski --- examples/launch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/launch.py b/examples/launch.py index 72eccf0..88ff420 100644 --- a/examples/launch.py +++ b/examples/launch.py @@ -212,14 +212,15 @@ def __create_vm_instances(os_creds_dict, os_users_dict, instances_config, if image_creator: instance_settings = VmInstanceSettings( **instance_config['instance']) - kp_name = conf.get('keypair_name') + kp_creator = keypairs_dict.get( + conf.get('keypair_name')) vm_dict[conf[ 'name']] = deploy_utils.create_vm_instance( __get_creds( os_creds_dict, os_users_dict, conf), instance_settings, image_creator.image_settings, - keypair_creator=keypairs_dict[kp_name], + keypair_creator=kp_creator, init_only=cleanup) else: raise Exception('Image creator instance not found.' -- cgit 1.2.3-korg