From 22f466696a1ee6222bced3003f0838e7e2f7640d Mon Sep 17 00:00:00 2001 From: anoopsjohn Date: Thu, 13 Aug 2015 14:32:59 +0530 Subject: [PATCH] HBASE-14214 list_labels shouldn't raise ArgumentError if no labels are defined. --- hbase-shell/src/main/ruby/hbase/visibility_labels.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hbase-shell/src/main/ruby/hbase/visibility_labels.rb b/hbase-shell/src/main/ruby/hbase/visibility_labels.rb index 47df48a8387..676903f719e 100644 --- a/hbase-shell/src/main/ruby/hbase/visibility_labels.rb +++ b/hbase-shell/src/main/ruby/hbase/visibility_labels.rb @@ -94,9 +94,6 @@ module Hbase if response.nil? raise(ArgumentError, "DISABLED: Visibility labels feature is not available") end - if response.getAuthList.empty? - raise(ArgumentError, "No authentication set for the given user " + user) - end return response.getAuthList end end @@ -108,9 +105,6 @@ module Hbase if response.nil? raise(ArgumentError, "DISABLED: Visibility labels feature is not available") end - if response.getLabelList.empty? - raise(ArgumentError, "No auth label defined") - end return response.getLabelList end end