# File lib/hammer_cli_foreman/commands.rb, line 158
    def get_resource_ids(resource, options={})
      opts = resolver.scoped_options(resource.singular_name, all_options)
      begin
        resolver.send("#{resource.singular_name}_ids", opts)
      rescue HammerCLIForeman::MissingSeachOptions => e
        if (options[:required] == true || resource_search_requested(resource, opts, true))
          logger.info "Error occured while searching for #{resource.name}"
          raise e
        end
      end
    end