MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / print

Method print

shared.py:2018–2021  ·  view source on GitHub ↗

Print a debug message if debug mode is enabled.

(self, message)

Source from the content-addressed store, hash-verified

2016 for host in hosts:
2017 # Convert to format expected by orchestrator
2018 row = {
2019 'MAC Address': host.get('mac', ''),
2020 'IPs': host.get('ip', ''),
2021 'Hostnames': host.get('hostname', ''),
2022 'Alive': '1' if host.get('status') == 'alive' else '0',
2023 'Ports': host.get('ports', ''),
2024 'Failed_Pings': str(host.get('failed_ping_count', 0)),

Callers 1

display_csvMethod · 0.80

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected