HBASE-26896 list_quota_snapshots fails with ‘ERROR NameError: uninitialized constant Shell::Commands::ListQuotaSnapshots::TABLE’ (#4284)

Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
Signed-off-by: Pankaj Kumar <pankajkumar@apache.org>
This commit is contained in:
Istvan Toth 2022-03-28 20:46:16 +02:00 committed by Peter Somogyi
parent a28e7ac52d
commit 9349db6e85
1 changed files with 3 additions and 3 deletions

View File

@ -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|