From c707dd7b62f2dc8cdb7d019c23a3ce623d9443f5 Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 2 May 2019 00:08:18 +0300 Subject: [PATCH] Added implicit initialization of APT package manager '_cache' field (#55851) --- lib/ansible/modules/packaging/os/package_facts.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ansible/modules/packaging/os/package_facts.py b/lib/ansible/modules/packaging/os/package_facts.py index 90aa208732..5175642bc1 100644 --- a/lib/ansible/modules/packaging/os/package_facts.py +++ b/lib/ansible/modules/packaging/os/package_facts.py @@ -177,6 +177,10 @@ class APT(LibMgr): LIB = 'apt' + def __init__(self): + self._cache = None + super(APT, self).__init__() + @property def pkg_cache(self): if self._cache: