diff --git a/lib/vmdb/permission_stores.rb b/lib/vmdb/permission_stores.rb index 1d3d50bfe03..5dc8e5b9a95 100644 --- a/lib/vmdb/permission_stores.rb +++ b/lib/vmdb/permission_stores.rb @@ -3,10 +3,10 @@ module Vmdb class PermissionStores def self.instance - @instance ||= new(blacklist) + @instance ||= new(unsupported) end - def self.blacklist + def self.unsupported permission_files.flat_map { |file| YAML.load_file(file) } end @@ -16,14 +16,14 @@ def self.blacklist .select(&:exist?) end - attr_reader :blacklist + attr_reader :unsupported - def initialize(blacklist) - @blacklist = blacklist + def initialize(unsupported) + @unsupported = unsupported end def can?(permission) - blacklist.exclude?(permission.to_s) + unsupported.exclude?(permission.to_s) end def supported_ems_type?(type)