Exercise appliance secret projection, truncation and device-only UI states
Rust development slice / linux (push) Failing after 12s
Rust development slice / linux (push) Failing after 12s
This commit is contained in:
@@ -49,9 +49,9 @@ def rows(provider):
|
||||
return dict(status='partial' if partial else 'ok', entries=entries)
|
||||
|
||||
|
||||
def configured():
|
||||
def configured(config_path='/conf/config.xml'):
|
||||
# Project only these model paths and display fields. Never serialize XML.
|
||||
with open('/conf/config.xml', 'rb') as f:
|
||||
with open(config_path, 'rb') as f:
|
||||
data = f.read(8 * 1024 * 1024 + 1)
|
||||
if len(data) > 8 * 1024 * 1024:
|
||||
raise ValueError('config size')
|
||||
|
||||
Reference in New Issue
Block a user