aboutsummaryrefslogtreecommitdiffstats
path: root/etc/taskcluster
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-10-30 13:30:21 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-10-30 13:30:41 +0100
commitd1a18dc05251827d75690053be1de4e6f124d8d8 (patch)
treefa895ee6fb22bb30e6557414c4156b2864c01eb7 /etc/taskcluster
parent46f9312d0cd7db4f7705e2552ed74186d7ee027e (diff)
downloadservo-d1a18dc05251827d75690053be1de4e6f124d8d8.tar.gz
servo-d1a18dc05251827d75690053be1de4e6f124d8d8.zip
Also show created/updated dates in Packet.net server list
Diffstat (limited to 'etc/taskcluster')
-rwxr-xr-xetc/taskcluster/packet.net/list_devices.py10
1 files changed, 6 insertions, 4 deletions
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