diff options
Diffstat (limited to 'scripts/remove-vfcmts/filter-vfcmts.py')
-rw-r--r-- | scripts/remove-vfcmts/filter-vfcmts.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/remove-vfcmts/filter-vfcmts.py b/scripts/remove-vfcmts/filter-vfcmts.py new file mode 100644 index 0000000..54c77e3 --- /dev/null +++ b/scripts/remove-vfcmts/filter-vfcmts.py @@ -0,0 +1,19 @@ +#!python -u + +import sys +import json + + +def is_vfcmt(str_json): + data = json.loads(str_json) + try: + resource_type = data["properties"]["resourceType"] + value = resource_type[0]["value"] + return value == "VFCMT" + except: + return False + + +for line in sys.stdin: + if is_vfcmt(line): + print line,
\ No newline at end of file |