buckets needs to be reset each loop
This commit is contained in:
parent
fbe409efff
commit
5619cb8270
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,6 @@ import subprocess
|
|||
import sys
|
||||
|
||||
exit = 0
|
||||
buckets = []
|
||||
bucket_count = {}
|
||||
containers = {}
|
||||
base_message = "OK: no duplicate mounts"
|
||||
|
@ -17,6 +16,7 @@ get_containers = subprocess.Popen('/usr/local/bin/get_containers', stdout=subpro
|
|||
containers = get_containers.decode().splitlines()
|
||||
|
||||
for i, container in enumerate(containers, start=1):
|
||||
buckets = []
|
||||
list_command = f"/usr/local/bin/nocc {container} files_external:list --all --show-password --output json"
|
||||
command = shlex.split(list_command)
|
||||
mount_data_byte = subprocess.Popen(command, stdout=subprocess.PIPE).stdout.read()
|
||||
|
|
Loading…
Add table
Reference in a new issue