Skip to content

Commit c1b6f9a

Browse files
Use modern distro API for platform info (ansible#15954)
Signed-off-by: Emmanuel Ferdman <[email protected]>
1 parent 32bbf3a commit c1b6f9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awx/main/analytics/collectors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def config(since, **kwargs):
142142
return {
143143
'platform': {
144144
'system': platform.system(),
145-
'dist': distro.linux_distribution(),
145+
'dist': (distro.name(), distro.version(), distro.codename()),
146146
'release': platform.release(),
147147
'type': install_type,
148148
},

0 commit comments

Comments
 (0)