mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
(maint) Fix bug with detecting ABS service
Before this change the code would try to check if an object was ABS by using is_a? which is only for instances of a class. It also compared with ABS.class which returns the Class class. Now fixed by comparing the object to the static class
This commit is contained in:
parent
a4231cc6f1
commit
fbd98f93ae
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ class Service
|
|||
|
||||
# some methods do not exist for ABS, and if possible should target the Pooler service
|
||||
def maybe_use_vmpooler
|
||||
if @service_object.is_a?(ABS.class)
|
||||
if @service_object == ABS # this is not an instance
|
||||
if !self.silent
|
||||
FloatyLogger.info "The service in use is ABS, but the requested method should run against vmpooler directly, using fallback_vmpooler config from ~/.vmfloaty.yml"
|
||||
self.silent = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue