You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by an...@apache.org on 2015/08/13 11:03:33 UTC
hbase git commit: HBASE-14214 list_labels shouldn't raise
ArgumentError if no labels are defined.
Repository: hbase
Updated Branches:
refs/heads/master d1262331e -> 9c69bf766
HBASE-14214 list_labels shouldn't raise ArgumentError if no labels are defined.
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/9c69bf76
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/9c69bf76
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/9c69bf76
Branch: refs/heads/master
Commit: 9c69bf766fcad024bef5760f242cae2bc609b374
Parents: d126233
Author: anoopsjohn <an...@gmail.com>
Authored: Thu Aug 13 14:32:59 2015 +0530
Committer: anoopsjohn <an...@gmail.com>
Committed: Thu Aug 13 14:32:59 2015 +0530
----------------------------------------------------------------------
hbase-shell/src/main/ruby/hbase/visibility_labels.rb | 6 ------
1 file changed, 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/9c69bf76/hbase-shell/src/main/ruby/hbase/visibility_labels.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/hbase/visibility_labels.rb b/hbase-shell/src/main/ruby/hbase/visibility_labels.rb
index 37c089d..0d50d8a 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