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
#!/usr/bin/python | |
import sys | |
import json | |
from lvmjson import * | |
import argparse | |
if __name__ == "__main__": | |
AVAILABLE_COMMANDS = ["lvs", "vgs", "pvs", "dminfo"] |
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
#!/usr/bin/python | |
""" | |
Filter accepting input in the form | |
FIELD='VALUE' FIELD2='VALUE2' ... | |
... | |
NOTE: Apostrophes are hardcoded separators and `FIELD` may contain only | |
uppercase letters, digits and underscores. |