Skip to content

Commit be2b833

Browse files
committed
Add date created in overview
1 parent 8feb4fe commit be2b833

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

listVirtualMachines.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ def printVirtualmachine(args):
252252
vm.instancename,
253253
vm.hostname,
254254
vm.domain,
255-
"Proj: " + " " + str(vm.project)
255+
"Proj: " + " " + str(vm.project),
256+
vm.created
256257
])
257258
else:
258259
t.add_row([
@@ -265,7 +266,8 @@ def printVirtualmachine(args):
265266
vm.instancename,
266267
vm.hostname,
267268
vm.domain,
268-
vm.account
269+
vm.account,
270+
vm.created
269271
])
270272
sys.stdout.write(".")
271273
sys.stdout.flush()
@@ -361,7 +363,8 @@ def printVirtualmachine(args):
361363
"Instance",
362364
"Host",
363365
"Domain",
364-
"Account"
366+
"Account",
367+
"Created"
365368
])
366369
t.align["VM"] = "l"
367370

@@ -431,7 +434,8 @@ def printVirtualmachine(args):
431434
"Instance",
432435
"Host",
433436
"Domain",
434-
"Account"
437+
"Account",
438+
"Created"
435439
])
436440
t.align["VM"] = "l"
437441

@@ -591,7 +595,8 @@ def printVirtualmachine(args):
591595
vm.name,
592596
vm.hostname,
593597
vm.domain,
594-
"Proj: " + " " + vm.project
598+
"Proj: " + " " + vm.project,
599+
vm.created
595600
])
596601
except:
597602
t.add_row([
@@ -604,7 +609,8 @@ def printVirtualmachine(args):
604609
vm.name,
605610
vm.hostname,
606611
vm.domain,
607-
"Proj: " + " " + vm.project
612+
"Proj: " + " " + vm.project,
613+
vm.created
608614
])
609615
else:
610616
try:
@@ -618,7 +624,8 @@ def printVirtualmachine(args):
618624
vm.name,
619625
vm.hostname,
620626
vm.domain,
621-
vm.account
627+
vm.account,
628+
vm.created
622629
])
623630
except:
624631
t.add_row([
@@ -631,7 +638,8 @@ def printVirtualmachine(args):
631638
vm.name,
632639
vm.hostname,
633640
vm.domain,
634-
vm.account
641+
vm.account,
642+
vm.created
635643
])
636644

637645
sys.stdout.write(".")

0 commit comments

Comments
 (0)