Skip to content

Commit

Permalink
Print discovered devices name and hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
saveriol authored Sep 26, 2024
1 parent d2b23b3 commit 6aa65ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hc-login.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ def b64random(num):
machine = xml2json(features, description)
config["description"] = machine["description"]
config["features"] = augment_device_features(machine["features"])
print("Discovered device: "+config["name"]+" - Device hostname: "+config["host"])

with open(devicefile, "w") as f:
json.dump(configs, f, ensure_ascii=True, indent=4)
Expand Down

0 comments on commit 6aa65ee

Please sign in to comment.