mirror of
https://github.com/puppetlabs/vmpooler-provider-ec2.git
synced 2026-01-26 02:28:40 -05:00
adding debug
This commit is contained in:
parent
b178aba883
commit
cab859272e
1 changed files with 2 additions and 1 deletions
|
|
@ -391,9 +391,10 @@ module Vmpooler
|
|||
# TODO: we could use a healthcheck resource attached to instance
|
||||
domain_set = domain || global_config[:config]['domain']
|
||||
if domain_set.nil?
|
||||
vm_ip = get_vm(pool_name, vm_name)['private_ip_address']
|
||||
vm_ip = get_vm(pool_name, vm_name)['private_dns_name']
|
||||
vm_name = vm_ip unless vm_ip.nil?
|
||||
end
|
||||
@logger.log('s', "[>] [#{pool_name}] '#{vm_name}' vm_ready? #{domain_set} #{vm_ip}")
|
||||
open_socket(vm_name, domain_set)
|
||||
rescue StandardError => e
|
||||
@logger.log('s', "[!] [#{pool_name}] '#{vm_name}' instance cannot be reached by vmpooler on tcp port 22; #{e}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue