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
This commit is contained in:
committed by
Alistair Coles
parent
a3e5c85ba6
commit
9baafe7f30
@@ -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 swift_dir: the path on disk to rings
|
||||||
:param policy_name: optionally the name to use when finding the ring
|
: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"
|
print "Data file doesn't exist"
|
||||||
raise InfoSystemExit()
|
raise InfoSystemExit()
|
||||||
if not datafile.startswith(('/', './')):
|
if not datafile.startswith(('/', './')):
|
||||||
|
|||||||
Reference in New Issue
Block a user