Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added sosvollist and added --name flag to sosvolinfo
Signed-off-by: Aravinda VK <avishwan@redhat.com>
- Loading branch information
1 parent
f8177c0
commit aa749b6
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env python | ||
""" | ||
Extracts Volumes list from the given sosreport path and displays | ||
""" | ||
import os | ||
|
||
|
||
def cmdargs(parser): | ||
# Add arguments for your tool using parser object | ||
# For example, parser.add_argument("--name", help="Name") | ||
parser.add_argument("path", help="Sosreport path") | ||
|
||
|
||
def run(args): | ||
volsdir = os.path.join(args.path, "var/lib/glusterd/vols") | ||
|
||
for v in os.listdir(volsdir): | ||
print(v) |