mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 18:08:42 -05:00
Fixing Naming/PredicateName issues
This commit drops the `has_` prefix from several `?` style methods because that's against the ruby style guide and redundant for a method ending in `?`.
This commit is contained in:
parent
5193ff6a84
commit
61e9f56ed2
2 changed files with 4 additions and 4 deletions
|
|
@ -181,13 +181,13 @@ module Vmpooler
|
|||
end
|
||||
end
|
||||
|
||||
return if has_mismatched_hostname?(vm, pool_name, provider)
|
||||
return if mismatched_hostname?(vm, pool_name, provider)
|
||||
|
||||
vm_still_ready?(pool_name, vm, provider)
|
||||
end
|
||||
end
|
||||
|
||||
def has_mismatched_hostname?(vm, pool_name, provider)
|
||||
def mismatched_hostname?(vm, pool_name, provider)
|
||||
pool_config = $config[:pools][$config[:pool_index][pool_name]]
|
||||
check_hostname = pool_config['check_hostname_for_mismatch']
|
||||
check_hostname = $config[:config]['check_ready_vm_hostname_for_mismatch'] if check_hostname.nil?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue