Show More
@@ -33,6 +33,8 b' import resource' | |||||
33 |
|
33 | |||
34 | import configparser |
|
34 | import configparser | |
35 |
|
35 | |||
|
36 | from rhodecode.lib.str_utils import safe_str | |||
|
37 | ||||
36 | log = logging.getLogger(__name__) |
|
38 | log = logging.getLogger(__name__) | |
37 |
|
39 | |||
38 |
|
40 | |||
@@ -169,10 +171,10 b' def py_modules():' | |||||
169 |
|
171 | |||
170 | @register_sysinfo |
|
172 | @register_sysinfo | |
171 | def platform_type(): |
|
173 | def platform_type(): | |
172 |
from rhodecode.lib.utils import |
|
174 | from rhodecode.lib.utils import generate_platform_uuid | |
173 |
|
175 | |||
174 | value = dict( |
|
176 | value = dict( | |
175 |
name=safe_ |
|
177 | name=safe_str(platform.platform()), | |
176 | uuid=generate_platform_uuid() |
|
178 | uuid=generate_platform_uuid() | |
177 | ) |
|
179 | ) | |
178 | return SysInfoRes(value=value) |
|
180 | return SysInfoRes(value=value) |
General Comments 0
You need to be logged in to leave comments.
Login now