Merge pull request #585 from jjlawren/gdm_scan_clients_with_all

Allow scanning for clients when using GDM.all()
This commit is contained in:
Steffen Fredriksen 2020-11-01 13:05:07 +01:00 committed by GitHub
commit 114d907443
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,12 +23,12 @@ class GDM:
"""Scan the network."""
self.update(scan_for_clients)
def all(self):
def all(self, scan_for_clients=False):
"""Return all found entries.
Will scan for entries if not scanned recently.
"""
self.scan()
self.scan(scan_for_clients)
return list(self.entries)
def find_by_content_type(self, value):