Skip to content

Commit fa05907

Browse files
committed
HBASE-23176 Fix for delete_table_snapshots.rb
1 parent 960c2fc commit fa05907

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hbase-shell/src/main/ruby/shell/commands/delete_table_snapshots.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def command(tableNameregex, snapshotNameRegex = '.*')
4343
count = list.size
4444
list.each do |snapshot|
4545
creation_time = Time.at(snapshot.getCreationTime / 1000).to_s
46-
formatter.row([snapshot.getName, snapshot.getTable + ' (' + creation_time + ')'])
46+
formatter.row([snapshot.getName, snapshot.getTableNameAsString +
47+
' (' + creation_time + ')'])
4748
end
4849
puts "\nDelete the above #{count} snapshots (y/n)?" unless count == 0
4950
answer = 'n'

0 commit comments

Comments
 (0)