Remove deprecated molecule cache (#35)
All checks were successful
continuous-integration/drone/tag Build is passing
All checks were successful
continuous-integration/drone/tag Build is passing
This makes the driver version with future versions of molecule, which will no longer have the cache in them. Same kind of change was already merged in two other drivers podman and docker. Related: https://github.com/ansible-community/molecule/pull/3180
This commit is contained in:
parent
22467fd1f4
commit
74540ee975
@ -1,8 +1,9 @@
|
||||
import os
|
||||
|
||||
from ansible_compat.ports import cache
|
||||
from molecule import logger, util
|
||||
from molecule.api import Driver
|
||||
from molecule.util import lru_cache, sysexit_with_message
|
||||
from molecule.util import sysexit_with_message
|
||||
|
||||
log = logger.get_logger(__name__)
|
||||
|
||||
@ -75,7 +76,7 @@ class HetznerCloud(Driver):
|
||||
item for item in instance_config_dict if item["instance"] == instance_name
|
||||
)
|
||||
|
||||
@lru_cache()
|
||||
@cache
|
||||
def sanity_checks(self):
|
||||
"""Hetzner Cloud driver sanity checks."""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user