From eb7f90ca929240d746fcb7cf439f3b7650e0d194 Mon Sep 17 00:00:00 2001 From: Joe Rafaniello Date: Wed, 4 Apr 2018 15:00:30 -0400 Subject: [PATCH] Use the now public registered_ansible_content reader --- app/models/embedded_ansible_worker/object_management.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/embedded_ansible_worker/object_management.rb b/app/models/embedded_ansible_worker/object_management.rb index 64d832ce151..85362db4c8b 100644 --- a/app/models/embedded_ansible_worker/object_management.rb +++ b/app/models/embedded_ansible_worker/object_management.rb @@ -85,8 +85,7 @@ def clean_consolidated_plugin_directory def copy_plugin_ansible_content FileUtils.mkdir_p(self.class.consolidated_plugin_directory) - # TODO: make this a public api via an attr_reader - Vmdb::Plugins.instance.instance_variable_get(:@registered_ansible_content).each do |content| + Vmdb::Plugins.instance.registered_ansible_content.each do |content| FileUtils.cp_r(Dir.glob("#{content.path}/*"), self.class.consolidated_plugin_directory) end end