mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
bugfix: return function if data is already cached
This commit is contained in:
parent
df4e6e4cc6
commit
6af966e08b
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ class AptRepository < Vulcano.resource(1)
|
||||||
|
|
||||||
# read
|
# read
|
||||||
def read_debs
|
def read_debs
|
||||||
@repo_cache if defined?(@repo_cache)
|
return @repo_cache if defined?(@repo_cache)
|
||||||
|
|
||||||
# load all lists
|
# load all lists
|
||||||
cmd = vulcano.command("find /etc/apt/ -name \*.list -exec sh -c 'cat {} || echo -n' \\;")
|
cmd = vulcano.command("find /etc/apt/ -name \*.list -exec sh -c 'cat {} || echo -n' \\;")
|
||||||
|
|
Loading…
Reference in a new issue