summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schwede <cschwede@redhat.com>2017-06-23 17:39:08 +0200
committerTim Burke <tim.burke@gmail.com>2017-09-13 05:57:30 +0000
commitcbddec340e2eda81cb06dfdc455d3fb108a48f05 (patch)
tree200c5c5ceab08944e1962d0685128248d893e909
parentb77de5393f540973685095cf087b3f839a55ba9f (diff)
downloadswift-cbddec340e2eda81cb06dfdc455d3fb108a48f05.tar.gz
Add bin/swift-dispersion-report
Change-Id: I81736080fc478c2b69d5b71edd0cada39aad9400
-rwxr-xr-xbin/swift-dispersion-report24
-rw-r--r--setup.cfg4
2 files changed, 25 insertions, 3 deletions
diff --git a/bin/swift-dispersion-report b/bin/swift-dispersion-report
new file mode 100755
index 000000000..f49b3034f
--- /dev/null
+++ b/bin/swift-dispersion-report
@@ -0,0 +1,24 @@
+#!/usr/bin/env python
+# Copyright (c) 2017 Christian Schwede <cschwede@redhat.com>
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+import sys
+
+from swift.cli.dispersion_report import main
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/setup.cfg b/setup.cfg
index 8dbdbc3e4..e99d85810 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -41,6 +41,7 @@ scripts =
bin/swift-container-reconciler
bin/swift-reconciler-enqueue
bin/swift-dispersion-populate
+ bin/swift-dispersion-report
bin/swift-drive-audit
bin/swift-form-signature
bin/swift-get-nodes
@@ -62,9 +63,6 @@ scripts =
bin/swift-ring-builder-analyzer
bin/swift-temp-url
-console_scripts =
- swift-dispersion-report = swift.cli.dispersion_report:main
-
[extras]
kms_keymaster =
oslo.config>=4.0.0,!=4.3.0,!=4.4.0 # Apache-2.0