From 9349db6e851905129f7076104d5c50183e9d2d88 Mon Sep 17 00:00:00 2001 From: Istvan Toth Date: Mon, 28 Mar 2022 20:46:16 +0200 Subject: [PATCH] =?UTF-8?q?HBASE-26896=20list=5Fquota=5Fsnapshots=20fails?= =?UTF-8?q?=20with=20=E2=80=98ERROR=20NameError:=20uninitialized=20constan?= =?UTF-8?q?t=20Shell::Commands::ListQuotaSnapshots::TABLE=E2=80=99=20(#428?= =?UTF-8?q?4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Wellington Chevreuil Signed-off-by: Pankaj Kumar --- .../src/main/ruby/shell/commands/list_quota_snapshots.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hbase-shell/src/main/ruby/shell/commands/list_quota_snapshots.rb b/hbase-shell/src/main/ruby/shell/commands/list_quota_snapshots.rb index 5cb01a92a4f..08a96673b7b 100644 --- a/hbase-shell/src/main/ruby/shell/commands/list_quota_snapshots.rb +++ b/hbase-shell/src/main/ruby/shell/commands/list_quota_snapshots.rb @@ -45,9 +45,9 @@ EOF def command(args = {}) # All arguments may be nil - desired_table = args[TABLE] - desired_namespace = args[NAMESPACE] - desired_regionserver = args[REGIONSERVER] + desired_table = args[::HBaseConstants::TABLE] + desired_namespace = args[::HBaseConstants::NAMESPACE] + desired_regionserver = args[::HBaseConstants::REGIONSERVER] formatter.header(%w[TABLE USAGE LIMIT IN_VIOLATION POLICY]) count = 0 quotas_admin.get_quota_snapshots(desired_regionserver).each do |table_name, snapshot|