diff options
author | Tim Burke <tim.burke@gmail.com> | 2016-07-14 11:16:29 -0500 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2017-09-13 22:47:04 +0000 |
commit | f95befb37fcb3563d3db965d72d1112f0e31bd1b (patch) | |
tree | cb239eb8024d0459e52fb66e8542926a8da3dc10 /bin | |
parent | 07a157f98e92948319b179b69b47e3e3d2e824b4 (diff) | |
download | swift-f95befb37fcb3563d3db965d72d1112f0e31bd1b.tar.gz |
Optionally drop common prefixes in swift-*-info output
Add a --drop-prefixes flag to swift-account-info, swift-container-info,
and swift-object-info. This makes the output between the three more
consistent.
Change-Id: I98252ff74c4983eaad0a93d9a9fc527c74ffce68
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/swift-account-info | 3 | ||||
-rwxr-xr-x | bin/swift-container-info | 3 | ||||
-rwxr-xr-x | bin/swift-object-info | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/bin/swift-account-info b/bin/swift-account-info index 4d14ec1eb..554f5e009 100755 --- a/bin/swift-account-info +++ b/bin/swift-account-info @@ -38,6 +38,9 @@ if __name__ == '__main__': parser.add_option( '-d', '--swift-dir', default='/etc/swift', help="Pass location of swift directory") + parser.add_option( + '--drop-prefixes', default=False, action="store_true", + help="When outputting metadata, drop the per-section common prefixes") options, args = parser.parse_args() diff --git a/bin/swift-container-info b/bin/swift-container-info index 7ac09ba67..136e48919 100755 --- a/bin/swift-container-info +++ b/bin/swift-container-info @@ -38,6 +38,9 @@ if __name__ == '__main__': parser.add_option( '-d', '--swift-dir', default='/etc/swift', help="Pass location of swift directory") + parser.add_option( + '--drop-prefixes', default=False, action="store_true", + help="When outputting metadata, drop the per-section common prefixes") options, args = parser.parse_args() diff --git a/bin/swift-object-info b/bin/swift-object-info index c625b47bb..44db817a0 100755 --- a/bin/swift-object-info +++ b/bin/swift-object-info @@ -30,6 +30,9 @@ if __name__ == '__main__': '-d', '--swift-dir', default='/etc/swift', dest='swift_dir', help="Pass location of swift directory") parser.add_option( + '--drop-prefixes', default=False, action="store_true", + help="When outputting metadata, drop the per-section common prefixes") + parser.add_option( '-P', '--policy-name', dest='policy_name', help="Specify storage policy name") |