From 47196e82dbb11504fa2bdf97663368ea16e654be Mon Sep 17 00:00:00 2001 From: karajan1001 Date: Tue, 26 Oct 2021 17:50:37 +0800 Subject: [PATCH] machine status: include two new field in the output 1. include instance_type and instance_gpu in the output. 2. rerange the field by importance. --- dvc/command/machine.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dvc/command/machine.py b/dvc/command/machine.py index 1be9ad3e48..a6541ef40e 100644 --- a/dvc/command/machine.py +++ b/dvc/command/machine.py @@ -193,7 +193,14 @@ def run(self): class CmdMachineStatus(CmdBase): - SHOWN_FIELD = ["name", "cloud", "instance_hdd_size", "instance_ip"] + SHOWN_FIELD = [ + "name", + "cloud", + "instance_ip", + "instance_type", + "instance_hdd_size", + "instance_gpu", + ] def run(self): if self.repo.machine is None: