mirror of
https://github.com/puppetlabs/vmpooler-provider-ec2.git
synced 2026-01-26 02:28:40 -05:00
fix vm_ready to check only the provider domain key, which will be used in the future for cloud dns
This commit is contained in:
parent
cab859272e
commit
61c71d6e4e
1 changed files with 1 additions and 2 deletions
|
|
@ -389,12 +389,11 @@ module Vmpooler
|
|||
def vm_ready?(pool_name, vm_name)
|
||||
begin
|
||||
# TODO: we could use a healthcheck resource attached to instance
|
||||
domain_set = domain || global_config[:config]['domain']
|
||||
domain_set = domain
|
||||
if domain_set.nil?
|
||||
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