HBASE-14214 list_labels shouldn't raise ArgumentError if no labels are defined.
This commit is contained in:
parent
d1262331eb
commit
9c69bf766f
|
@ -94,9 +94,6 @@ module Hbase
|
||||||
if response.nil?
|
if response.nil?
|
||||||
raise(ArgumentError, "DISABLED: Visibility labels feature is not available")
|
raise(ArgumentError, "DISABLED: Visibility labels feature is not available")
|
||||||
end
|
end
|
||||||
if response.getAuthList.empty?
|
|
||||||
raise(ArgumentError, "No authentication set for the given user " + user)
|
|
||||||
end
|
|
||||||
return response.getAuthList
|
return response.getAuthList
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -108,9 +105,6 @@ module Hbase
|
||||||
if response.nil?
|
if response.nil?
|
||||||
raise(ArgumentError, "DISABLED: Visibility labels feature is not available")
|
raise(ArgumentError, "DISABLED: Visibility labels feature is not available")
|
||||||
end
|
end
|
||||||
if response.getLabelList.empty?
|
|
||||||
raise(ArgumentError, "No auth label defined")
|
|
||||||
end
|
|
||||||
return response.getLabelList
|
return response.getLabelList
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue