Skip to content

Commit ceb7c01

Browse files
committed
(PUP-11158) Use inspect to differentiate between string and symbol
1 parent e86d11c commit ceb7c01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/puppet/environments.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def get(name)
391391
clear_all_expired
392392
result = @cache[name]
393393
if result
394-
Puppet.debug {"Found in cache '#{name}' #{result.label}"}
394+
Puppet.debug {"Found in cache #{name.inspect} #{result.label}"}
395395
# found in cache
396396
result.touch
397397
return result.value
@@ -405,15 +405,15 @@ def get(name)
405405

406406
# Adds a cache entry to the cache
407407
def add_entry(name, cache_entry)
408-
Puppet.debug {"Caching environment '#{name}' #{cache_entry.label}"}
408+
Puppet.debug {"Caching environment #{name.inspect} #{cache_entry.label}"}
409409
@cache[name] = cache_entry
410410
@cache_expiration_service.created(cache_entry.value)
411411
end
412412
private :add_entry
413413

414414
def clear_entry(name, entry)
415415
@cache.delete(name)
416-
Puppet.debug {"Evicting cache entry for environment '#{name}'"}
416+
Puppet.debug {"Evicting cache entry for environment #{name.inspect}"}
417417
@cache_expiration_service.evicted(name.to_sym)
418418
Puppet::GettextConfig.delete_text_domain(name)
419419
Puppet.settings.clear_environment_settings(name)

0 commit comments

Comments
 (0)