mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
sys.subversion unavailable in py24. Fixes #14704
This commit is contained in:
parent
f99ed97c40
commit
e27eb73cba
1 changed files with 4 additions and 1 deletions
|
@ -808,9 +808,12 @@ class Facts(object):
|
|||
},
|
||||
'version_info': list(sys.version_info),
|
||||
'executable': sys.executable,
|
||||
'type': sys.subversion[0],
|
||||
'has_sslcontext': HAS_SSLCONTEXT
|
||||
}
|
||||
try:
|
||||
self.facts['python']['type'] = sys.subversion[0]
|
||||
except AttributeError:
|
||||
self.facts['python']['type'] = None
|
||||
|
||||
|
||||
class Hardware(Facts):
|
||||
|
|
Loading…
Reference in a new issue