mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
tabling this PR for the next sprint
This commit is contained in:
parent
e5c477254f
commit
66eb598e4e
4 changed files with 76 additions and 20 deletions
|
|
@ -368,7 +368,15 @@ module Vmpooler
|
|||
else
|
||||
fqdn = hostname
|
||||
end
|
||||
dns_ip, dns_available = check_dns_available(fqdn)
|
||||
|
||||
# skip dns check if the provider is set to skip_dns_check_before_creating_vm
|
||||
provider = get_provider_for_pool(pool_name)
|
||||
if config[:providers] && config[:providers][provider.name.to_sym] && config[:providers][provider.name.to_sym]['skip_dns_check_before_creating_vm']
|
||||
dns_available = true
|
||||
else
|
||||
dns_ip, dns_available = check_dns_available(fqdn)
|
||||
end
|
||||
|
||||
break if hostname_available && dns_available
|
||||
|
||||
hostname_retries += 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue