From d1a18dc05251827d75690053be1de4e6f124d8d8 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 30 Oct 2018 13:30:21 +0100 Subject: Also show created/updated dates in Packet.net server list --- etc/taskcluster/packet.net/list_devices.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'etc/taskcluster') diff --git a/etc/taskcluster/packet.net/list_devices.py b/etc/taskcluster/packet.net/list_devices.py index 7562ab8a8bb..3b9df48e532 100755 --- a/etc/taskcluster/packet.net/list_devices.py +++ b/etc/taskcluster/packet.net/list_devices.py @@ -22,12 +22,14 @@ def main(): response = api_request("/projects/%s/devices?per_page=1000" % SERVO_PROJECT_ID) for device in response["devices"]: print(device["id"]) - print(" Host:\t" + device["hostname"]) - print(" Plan:\t" + device["plan"]["name"]) - print(" OS:\t" + device["operating_system"]["name"]) + print(" Hostname:\t" + device["hostname"]) + print(" Plan:\t" + device["plan"]["name"]) + print(" OS: \t" + device["operating_system"]["name"]) for address in device["ip_addresses"]: if address["public"]: - print(" IPv%s:\t%s" % (address["address_family"], address["address"])) + print(" IPv%s:\t%s" % (address["address_family"], address["address"])) + print(" Created:\t" + device["created_at"].replace("T", " ")) + print(" Updated:\t" + device["updated_at"].replace("T", " ")) assert response["meta"]["next"] is None -- cgit v1.2.3