diff options
author | 2017-11-03 12:26:02 -0600 | |
---|---|---|
committer | 2017-11-03 12:26:02 -0600 | |
commit | 429c05c13a26ba22161cfec5938aecbc1c1427c2 (patch) | |
tree | 84643eb734dbf7571fb38d99a398c73c72fd50d3 /examples | |
parent | 7ddff3c75481b3c3d1b9cd39b88ed875a168d67d (diff) |
Quick fix around static IPs and ports in launch.py application.
Change-Id: I81b74fb37aee37644f3092251ae5163d57392fdc
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/launch.py | 5 |
1 files 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.' |