From 9baafe7f305147c70d004402ebb05a22db85bc18 Mon Sep 17 00:00:00 2001 From: Ricardo Ferreira Date: Fri, 6 Mar 2015 21:18:48 +0000 Subject: [PATCH] Allow swift-object-info to inspect .meta and .ts files Removing the check for ".data" extension makes it check *any* file for metadata, so it works with .meta and .ts filetypes. Change-Id: I43966d371218ad39414e9282cde579e48370a2a7 Closes-Bug:1425679 --- swift/cli/info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swift/cli/info.py b/swift/cli/info.py index cffb93eed5..142b103f47 100644 --- a/swift/cli/info.py +++ b/swift/cli/info.py @@ -330,7 +330,7 @@ def print_obj(datafile, check_etag=True, swift_dir='/etc/swift', :param swift_dir: the path on disk to rings :param policy_name: optionally the name to use when finding the ring """ - if not os.path.exists(datafile) or not datafile.endswith('.data'): + if not os.path.exists(datafile): print "Data file doesn't exist" raise InfoSystemExit() if not datafile.startswith(('/', './')):