mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
sys.subversion unavailable in py24. Fixes #14704
This commit is contained in:
@@ -808,9 +808,12 @@ class Facts(object):
|
|||||||
},
|
},
|
||||||
'version_info': list(sys.version_info),
|
'version_info': list(sys.version_info),
|
||||||
'executable': sys.executable,
|
'executable': sys.executable,
|
||||||
'type': sys.subversion[0],
|
|
||||||
'has_sslcontext': HAS_SSLCONTEXT
|
'has_sslcontext': HAS_SSLCONTEXT
|
||||||
}
|
}
|
||||||
|
try:
|
||||||
|
self.facts['python']['type'] = sys.subversion[0]
|
||||||
|
except AttributeError:
|
||||||
|
self.facts['python']['type'] = None
|
||||||
|
|
||||||
|
|
||||||
class Hardware(Facts):
|
class Hardware(Facts):
|
||||||
|
|||||||
Reference in New Issue
Block a user