mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
schema update
This commit is contained in:
@ -46,7 +46,7 @@ Schema:
|
|||||||
"fs_type": string,
|
"fs_type": string,
|
||||||
"mount_source": string,
|
"mount_source": string,
|
||||||
"super_options": [
|
"super_options": [
|
||||||
string
|
integer # [2]
|
||||||
],
|
],
|
||||||
"super_options_fields": {
|
"super_options_fields": {
|
||||||
"<key>": string
|
"<key>": string
|
||||||
@ -56,6 +56,8 @@ Schema:
|
|||||||
|
|
||||||
[0] if empty, then private mount
|
[0] if empty, then private mount
|
||||||
[1] unbindable will always have a value of 0
|
[1] unbindable will always have a value of 0
|
||||||
|
[2] integer conversions are attempted. Use --raw or raw=True for
|
||||||
|
original string values.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ Schema:
|
|||||||
"fs_type": string,
|
"fs_type": string,
|
||||||
"mount_source": string,
|
"mount_source": string,
|
||||||
"super_options": [
|
"super_options": [
|
||||||
string
|
integer # [2]
|
||||||
],
|
],
|
||||||
"super_options_fields": {
|
"super_options_fields": {
|
||||||
"<key>": string
|
"<key>": string
|
||||||
@ -51,6 +51,8 @@ Schema:
|
|||||||
|
|
||||||
[0] if empty, then private mount
|
[0] if empty, then private mount
|
||||||
[1] unbindable will always have a value of 0
|
[1] unbindable will always have a value of 0
|
||||||
|
[2] integer conversions are attempted. Use --raw or raw=True for
|
||||||
|
original string values.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
@ -200,7 +202,7 @@ def _process(proc_data: List[Dict]) -> List[Dict]:
|
|||||||
|
|
||||||
for field in s_options_fields:
|
for field in s_options_fields:
|
||||||
key, val = field.split('=')
|
key, val = field.split('=')
|
||||||
entry['super_options_fields'][key] = val
|
entry['super_options_fields'][key] = jc.utils.convert_to_int(val)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
del entry['super_options']
|
del entry['super_options']
|
||||||
|
Reference in New Issue
Block a user