updated apt state

This commit is contained in:
Paul 2022-10-01 20:13:01 +02:00
parent ae8c3d4514
commit 23f1275aa7

View File

@ -10,7 +10,7 @@ PORT = "{{ apt.proxy.port }}"
def main(): def main():
regex = re.compile(f".*{HOSTNAME}.*") regex = re.compile(f".*{HOSTNAME}.*")
cmd = subprocess.Popen(f"avahi-resolve-host-name {HOSTNAME}", cmd = subprocess.Popen(f"getent hosts {HOSTNAME}",
shell=True, shell=True,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE) stderr=subprocess.PIPE)