Skip to content

Commit

Permalink
Make black happy
Browse files Browse the repository at this point in the history
  • Loading branch information
wil committed Dec 30, 2024
1 parent 1906a36 commit 1f537c2
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions ldeep/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,18 @@ def default(o):
except:
print(f"Primary/Secondary Site: {sid}")
# sccm management points
elif "mSSMSManagementPoint" in record["objectClass"] and "connectionPoint" in record["objectClass"]:
elif (
"mSSMSManagementPoint" in record["objectClass"]
and "connectionPoint" in record["objectClass"]
):
print(f"Management point: {record['dNSHostName']}")
print(f" Default MP: {record['mSSMSDefaultMP']}")
print(f" Site code: {record['mSSMSSiteCode']}")
# potential sccm distribution points
elif "connectionPoint" in record["objectClass"]:
print(f"Potential distribution point: {','.join(record['distinguishedName'].split(',')[1:])}")
print(
f"Potential distribution point: {','.join(record['distinguishedName'].split(',')[1:])}"
)

if self.engine.page_size > 0 and k % self.engine.page_size == 0:
sleep(self.engine.throttle)
Expand Down Expand Up @@ -1054,7 +1059,12 @@ def list_sccm(self, kwargs):
if verbose:
attributes = self.engine.all_attributes()
else:
attributes = ["objectClass", "dNSHostName", "mSSMSDefaultMP", "mSSMSSiteCode"]
attributes = [
"objectClass",
"dNSHostName",
"mSSMSDefaultMP",
"mSSMSSiteCode",
]

results = self.engine.query(
self.engine.MP_SCCM_FILTER(),
Expand Down

0 comments on commit 1f537c2

Please sign in to comment.