From be6128470f6e7d590f889b20ea24bdde115f059e 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 1be9ad3e4..a6541ef40 100644 --- a/dvc/command/machine.py +++ b/dvc/command/machine.py @@ -193,7 +193,14 @@ class CmdMachineCreate(CmdBase): 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: