1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

schema update

This commit is contained in:
Kelly Brazil
2022-09-22 08:15:51 -07:00
parent e29262b95a
commit 02e08403e3
2 changed files with 7 additions and 3 deletions

View File

@ -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:

View File

@ -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']