diff options
author | Zuul <zuul@review.openstack.org> | 2018-03-13 03:39:02 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2018-03-13 03:39:02 +0000 |
commit | 2c7e12289f3f117fe3a546b954bb4292b8394308 (patch) | |
tree | e86375b141077ab337711c7653be4e1e70f6f8ed /bin | |
parent | 4fd7b0354c416597f5bc8db3f20ef815d445bc86 (diff) | |
parent | f95befb37fcb3563d3db965d72d1112f0e31bd1b (diff) | |
download | swift-2c7e12289f3f117fe3a546b954bb4292b8394308.tar.gz |
Merge "Optionally drop common prefixes in swift-*-info output"
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 8e80b0eda..29f59c100 100755 --- a/bin/swift-object-info +++ b/bin/swift-object-info @@ -40,6 +40,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") |