Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
slapos.core
Commits
b03a7e8a
Commit
b03a7e8a
authored
4 years ago
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
collect: fix reading collect config
eval is not needed here
parent
20277085
master
cli_request_parameters_file
cln-fixes
dev/buildout_rebase_experiments
feat/cli_request_file
feat/improve_testcase
feat/ipv6_range
feat/ipv6_range_and_tun
feat/ipv6_range_custom_prefixshift
feat/node-secrets
feat/openapi
feat/rewrite-slapformat
feat/slap-connection-include-shared-parts
feat/slapgrid_report_stalled
feat/slapos-service-list-limit
feat/standalone-service
fix-invoicing
fix/instance-python-executable-inspection
fix/ipv6_tap_netmask
fix/promise_preexec_fn_deadlock
fix/proxy-output
fix/request_without_timeout
fix/revert_slappopen_threading
fix/slapformat_after_ipv6_range_and_tun
fix/slappopen_pipes_and_timeout
fix/slappopen_test_timeouts
fix/standalone-all
fix_promise_logging
fix_promise_logging_again
fix_slapformat_python3
fix_standalone_format
forward_state_propagation
improve_proxy_root_path
improve_slapos_cli
instance_python_promises
instance_state_propagation
promises_with_instance_python
proxy-child-instance-name-collisions
proxy_relative_urls
proxy_root_path_migrate
refactor/format
slapformat_in_standalone
slapgrid_no_supervisord
slapproxy_frontend
slapproxy_hatoeas
standalone/increase_slapos_error_log_tail_size
standalone_node_auto
standalone_proxy_path
standalone_slapformat_on_no_supervisord
standalone_with_hateoas
tests
transparent_json_in_xml
1.6.14
1.6.13
1.6.12
1.6.11
1.6.10
1.6.9
1.6.8
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
slapos/collect/entity.py
slapos/collect/entity.py
+2
-2
No files found.
slapos/collect/entity.py
View file @
b03a7e8a
...
...
@@ -42,10 +42,10 @@ def get_user_list(config):
if
config
.
has_section
(
'collect'
):
collect_section
=
dict
(
config
.
items
(
"collect"
))
disk_snapshot_params
=
dict
(
enable
=
eval
(
collect_section
.
get
(
"report_disk_usage"
,
"False"
)
),
enable
=
collect_section
.
get
(
"report_disk_usage"
,
"False"
).
lower
()
in
(
'true'
,
'on'
,
'1'
),
pid_folder
=
collect_section
.
get
(
"disk_snapshot_process_pid_foder"
,
None
),
time_cycle
=
int
(
collect_section
.
get
(
"disk_snapshot_time_cycle"
,
86400
)),
use_quota
=
eval
(
collect_section
.
get
(
"disk_snapshot_use_quota"
,
"True"
))
use_quota
=
collect_section
.
get
(
"disk_snapshot_use_quota"
,
"True"
).
lower
()
in
(
'true'
,
'on'
,
'1'
),
)
user_dict
=
{
name
:
User
(
name
,
path
,
disk_snapshot_params
)
for
name
,
path
in
[
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment