소스 검색

Actually pass the username.

Joe Clarke 1 년 전
부모
커밋
b3ed5bf47b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      automation/services/dhcp-hook.py

+ 1 - 1
automation/services/dhcp-hook.py

@@ -646,7 +646,7 @@ if __name__ == "__main__":
                 print_dnac(spark, uname, res, "")
                 hmac = normalize_mac(res["mac"])
                 leases = check_for_mac(hmac)
-                cmxres = get_from_cmx(mac=hmac)
+                cmxres = get_from_cmx(mac=hmac, user=uname)
                 if leases is not None:
                     seen_ip = {}
                     for lres in leases: